Introduction: Batch File Sign-In Script
Hello Instructables community! This is Blurryface21, and this is my second Instructable! This batch file is a sign-in script with a username/password and can be put before any program you want to log in to1
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: The Code
Enter your username
set /p "username= >
" if %username%==USERNAME1 goto PASSWORD
echo The username was not found, please try again.
echo Enter your password
set /p "password= >
" if %password%==PASSWORD1 goto OK
echo The password is incorrect, please try again.
echo Welcome %username%, if %password%==PASSWORD1 goto PROGRAM
Under :PROGRAM you put the program you wanna log in to!
Save the code as anyname.bat and save it as All Files, and you got a log-in system!