How to Make a Simple Batch Login

by iiDeputy_LawzzS in Circuits > Microsoft

1159 Views, 0 Favorites, 0 Comments

How to Make a Simple Batch Login

YFNDB.PNG

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.

.

Add a Menu

S1.PNG

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

Add Profile Creation Menu.

S2.PNG

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

Final Step, Add a Login Menu.

S3.PNG

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.