Batch File Sign-In Script

Published

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

Step 1: The Code

:MAIN

cls

echo.

echo

Enter your username

echo.

set /p "username= >

" if %username%==USERNAME1 goto PASSWORD

goto ERROR1

:ERROR1

echo.

echo The username was not found, please try again.

echo.

pause

goto MAIN

:PASSWORD

cls

echo.

echo Enter your password

echo.

set /p "password= >

" if %password%==PASSWORD1 goto OK

goto ERROR2

:ERROR2

echo.

echo The password is incorrect, please try again.

echo.

pause

goto PASSWORD

:OK

cls

echo.

echo Welcome %username%, if %password%==PASSWORD1 goto PROGRAM

echo.

pause

: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!

Share

    Recommendations

    • Woodworking Contest

      Woodworking Contest
    • Planter Challenge

      Planter Challenge
    • Casting Contest

      Casting Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    please help me I have an error for sign up

    the system cannot find the batch label specified-sign up