Batch sign-in script. This script is limited though, because you have to program the username/password in the actual program.
Refer to my other blog post to see a better user system.
Refer to my other blog post to see a better user system.
: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 REM Program Here!
0 Comments On This Entry
Trackbacks for this entry [ Trackback URL ]
← April 2021 →
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 |
My Blog Links
Recent Entries
-
-
Batch sign-in script
on Dec 10 2016 12:49 PM
-
-
-
Search My Blog
0 user(s) viewing
0 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)