Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :reg
- @echo off
- cls
- color a
- TITLE Bautista Project
- mode CON: COLS=80 lines=20
- setlocal EnableDelayedExpansion
- @echo %date%
- @echo _____________________________
- @echo ^| ^|
- @echo ^| Create new account ^|
- @echo +_____________________________+
- echo.
- Set usr=
- set /p usr=Enter new username:
- Set pwd=
- set /p pwd=Enter new password:
- if not defined pwd goto try
- set rpwd=
- set /p rpwd=Retype new password:
- if not defined rpwd goto try
- if not defined usr goto try
- if %pwd%==%rpwd% (
- echo %usr%>file.txt
- echo %pwd%>>file.txt
- goto success
- ) else (
- echo.
- echo Password doesn't matched. Please try again.
- pause>nul
- goto reg
- )
- :success
- cls
- echo.
- echo Successfully registered
- pause>nul
- call main.bat
- :try
- echo Please complete all fields
- pause>nul
- goto reg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement