Introduction: How to Make a Login/signup Bach File

Hello and to day i will show you how to make a login/signup bach file. P.s this is my frist instructsbles so bare with me ok.

Step 1: Sign Up

Ok i will start with showing you how to make the sign up part.
But befor we start i will say that you should know some basic bach or cmd befor you start this project if not you should start with something les complex. ok lets start with @echo off
title LOGIN OR SIGN UP
color 0a
echo.
echo LOGIN OR SIGN UP
echo 1. LOGIN
echo 2. SIGN UP
set /p los=
if %los%==1 goto login
if %los%==2 goto signup
pause >nul

That is the first thing to see when you open the bach file.


:Reg
cls
Title Register
Echo REGISTERATION
Echo:
set /p U=Username:
set /p P=Password:
Echo %P%>password.uf
Echo %U%>username.uf

start msbox.vbs
Echo.
Echo Press any key
Pause>nul

that is the registeration page code the start msbox.vbs is a ,vbs file i will show you how to make that later and
the Echo %P%>password.uf and Echo %U%>username.uf will make 2 .uf files to store your username and password info




Step 2:

now i will show to how to make the login page.

:Login
cls
color 0a
setlocal
set User2=
for /f "tokens=*" %%a in ('type username.uf 2^>NUL') do set User2=%%a
set Pass2=
for /f "tokens=*" %%a in ('type password.uf 2^>NUL') do set Pass2=%%a
:Loginp2
Title Log in
cls
Echo Log in
Echo:
set /p user= Username:
set /p pass= Password:
if /i %user% equ %User2% (
if /i %pass% equ %Pass2% (
goto W
)
) else (goto IC)

that takes the info from the .uf file aka password and username ceper and checks if it is the same as you typed in

:IC
cls
color 0c
echo The Password/Username was incorrect please try again
Echo:
Echo Press any key to go back
Pause>nul
goto Login

if you type the wrong password or username it will goto :IC
not W



Step 3:

Know i show you how to make the menu page



:W
cls
Title Welcome
Echo Welcome %U%
echo.
echo.
echo 1. change my style.
echo 2. enter the matrix.
set /p input=
if %input%==1 goto colors
if %input%==2 goto matrix
Pause>nul

this is the menu i will show to how to change my style and make the matrix in a later totorial.

Step 4:

ok i told you i would show you how to make the msbox.vbs and know i will

x=MsgBox("Your accaount has been made", 1+48, "Warning")

copy and past this in to a text editor and save as msbox.vbs