Introduction: How to Make a Login/signup Bach File
Hello and to day i will show you how to make a login/signup bach file. P.s this is my frist instructsbles so bare with me ok.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Sign Up
Ok i will start with showing you how to make the sign up part.
But befor we start i will say that you should know some basic bach or cmd befor you start this project if not you should start with something les complex. ok lets start with @echo off
title LOGIN OR SIGN UP
echo LOGIN OR SIGN UP
echo 1. LOGIN
echo 2. SIGN UP
set /p los=
if %los%==1 goto login
if %los%==2 goto signup
That is the first thing to see when you open the bach file.
set /p U=Username:
set /p P=Password:
Echo Press any key
that is the registeration page code the start msbox.vbs is a ,vbs file i will show you how to make that later and
the Echo %P%>password.uf and Echo %U%>username.uf will make 2 .uf files to store your username and password info
now i will show to how to make the login page.
for /f "tokens=*" %%a in ('type username.uf 2^>NUL') do set User2=%%a
for /f "tokens=*" %%a in ('type password.uf 2^>NUL') do set Pass2=%%a
Title Log in
Echo Log in
set /p user= Username:
set /p pass= Password:
if /i %user% equ %User2% (
if /i %pass% equ %Pass2% (
) else (goto IC)
that takes the info from the .uf file aka password and username ceper and checks if it is the same as you typed in
echo The Password/Username was incorrect please try again
Echo Press any key to go back
if you type the wrong password or username it will goto :IC
Know i show you how to make the menu page
Echo Welcome %U%
echo 1. change my style.
echo 2. enter the matrix.
set /p input=
if %input%==1 goto colors
if %input%==2 goto matrix
this is the menu i will show to how to change my style and make the matrix in a later totorial.
ok i told you i would show you how to make the msbox.vbs and know i will
x=MsgBox("Your accaount has been made", 1+48, "Warning")
copy and past this in to a text editor and save as msbox.vbs