Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :1
- set/p signupin= would you like to sign up or log in?
- goto %signupin%
- :home
- cls
- echo 1
- echo 2
- echo 3
- set/p where= where do you want to go?
- if %where%== 1 goto 5
- if %where%== 2 goto 5
- if %where%== 3 goto 5
- :sign up
- cls
- set /p username= what would you like your username to be?:
- echo %username% > username.txt
- echo sucsess
- pause
- goto password
- :password
- cls
- set /p pass= what would you like your password to be?:
- echo %pass% >password.txt
- echo sucsess
- pause
- goto home
- :log in
- cls
- set /p username= what is your username?
- for /f "delims=" %%a in (username.txt) do (
- set text=%%a
- )
- if %username%==%text% goto pass
- echo you are wrong
- set /p go back= would you like to try again (yes/no)
- if %go back%== yes goto 1
- if %go back%==no exit
- :pass
- set /p password= what is your password?
- for /f "delims=" %%a in (password.txt) do (
- set text=%%a
- )
- if %username%==%text% goto home
- echo you are wrong
- set /p go back= would you like to try again (yes/no)
- if %go back%== yes goto 1
- if %go back%==no exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement