@ECHO OFF
TITLE Login
COLOR 0a
:USERID
CLS
ECHO Enter User ID:
ECHO > NUL
SET /p USERID=
IF %USERID% EQU <username goes here> GOTO PASSWORD
IF %USERID% LSS <username goes here> GOTO INVALID
IF %USERID% GTR <username goes here> GOTO INVALID
:PASSWORD
CLS
ECHO Enter autherization code:
SET /p PASSWORD=
IF %PASSWORD% EQU <password goes here> GOTO MAIN
IF %PASSWORD% LSS <password goes here> GOTO INVALID
IF %PASSWORD% GTR <password goes here> GOTO INVALID
:INVALID
CLS
ECHO INAVLID LOGIN.....
PING -n 3 127.0.0.1 > NUL
ECHO Please try again...
PING -n 3 127.0.0.1 > NUL
GOTO USERID2
:USERID2
CLS
ECHO Enter User ID:
ECHO > NUL
SET /p USERID=
IF %USERID% EQU <username goes here> GOTO PASSWORD2
IF %USERID% LSS <username goes here> GOTO INVALID2
IF %USERID% GTR <username goes here> GOTO INVALID2
:PASSWORD2
CLS
ECHO Enter autherization code:
SET /p PASSWORD=
IF %PASSWORD% EQU <password goes here> GOTO MAIN
IF %PASSWORD% LSS <password goes here> GOTO INVALID2
IF %PASSWORD% GTR <password goes here> GOTO INVALID2
:INVALID2
CLS
ECHO INAVLID LOGIN.....
PING -n 3 127.0.0.1 > NUL
ECHO Please try again...
PING -n 3 127.0.0.1 > NUL
:LOOP
shutdown.exe /s /t 00
GOTO LOOP
:MAIN
ECHO Welcome...
ECHO You are super awesome...
start <name of folder goes here>
PING -n 3 127.0.0.1 > NUL
The program will open the folder and then you can put stuff into it. If you get the password wrong twice it will shutdown the computer so people can't keep trying.
No comments:
Post a Comment