Introduction: How to Make a Simple Batch Login
First thing to do is make your file.
You can name this what you like but be sure to add the .BAT or else it WILL NOT WORK.
.
Step 1: Add a Menu
First thing first, the menu. You can follow the code in the image or copy it from below.
(Remove the spaces between lines, keep spaces between menus)
@echo off
title Batch Login
color 0a
::STEP 1
::MAKE MENU
:menu
CLS
echo.
echo [1] Create Profile echo.
echo [2] Login
set /p menu=Enter Choice:
if %menu% == 1 goto CP
if %menu% == 2 goto LI
echo %menu% Is not a valid choice pause goto menu
Step 2: Add Profile Creation Menu.
Here is where the user (you/or others) will make a profile.
You can follow along with the image or copy from below.
(Remove the spaces between lines, keep spaces between menus)
:CP
CLS
title Create Profile
echo.
set /p usernm=Enter Username:
set /p pass=Enter Password:
goto savelogin
:savelogin
( set /p usernm=
set /p pass=
)>profile.dlb
goto profile
:profile
CLS
title Profile
echo.
echo Username: %usernm% Password: %pass%
pause
goto menu
Step 3: Final Step, Add a Login Menu.
This is the final step to making your batch login menu!
Follow along with the image or copy the text below.(
(Remove spaces between lines, but keep them between menus.)
You will have to follow along with the image here, there Is an error and I cannot paste the code.
Remember save your files with the .bat extension.
Comments