Cool Batch With Menu and Login
by fnfjustgotcoded89142 in Circuits > Microsoft
39 Views, 0 Favorites, 0 Comments
Cool Batch With Menu and Login
hello everyone, from being inspired from other batch files, i decided to make my own batch to show you how to make...
shoutout to TheKnowledgeFactory for making the signin codes
The Steps for People Who Are New to Coding (skip This Step If You Are Experienced)
go to your search bar and type in "notepad" and press enter (if it dosent appear someone played with ur files and deleted it or your using the wrong os)
Copy and Paste
copy and paste this code into your notepad
THIS IS JUST VERSION 1.0, I WILL CONSTANTLY GIVE UPDATES AND POST THEM
you might wanna re arrange the code or it wont work. if u want theres a download here: https://ufile.io/5h4g30vy
also there is sometimes random stuff that i made for fun that you might wanna remove... :)
anyways heres the code:
REM ******************************************
@echo off mode con: cols=51 lines=18 IF NOT EXIST "c:\uname.txt" goto SIGNUP IF NOT EXIST "c:\password.txt" goto SIGNUP echo please do not touch your keyboad unless you neet to type echo (it causes the app to crash or a random command to run) ping localhost -n 9 >nul goto LOGIN
:SIGNUP title SignUp cls echo ------------------------------------------------- echo SignUp echo ------------------------------------------------- echo. set/p "unamesu=Enter Username : " set/p "passsu=Enter Password : " echo. echo. IF ["%unamesu%"] == [""] goto SIGNUPERROR IF ["%passsu%"] ==[""] goto SIGNUPERROR goto CREATEACC
:SIGNUPERROR echo ------------------------------------------------- echo Error echo ------------------------------------------------- echo Invalid Username or password pause goto SIGNUP
:CREATEACC echo %unamesu% >> C:\uname.txt echo %passsu% >> C:\password.txt attrib "C:\uname.txt" +s +h attrib "C:\password.txt" +s +h IF EXIST "C:\Program Files\Mozilla Firefox\firefox.exe" goto FIREFOX goto IE
:FIREFOX start firefox.exe "http://errorcode401.blogspot.in/2013/06/FFlocker-1.0.html" goto LOGIN
:IE start iexplore "http://errorcode401.blogspot.in/2013/06/FFlocker-1.0.html" goto LOGIN
:LOGIN set/p uname= < C:\uname.txt set/p pass=< C:\password.txt title Login cls echo ------------------------------------------------- echo Login echo ------------------------------------------------- echo. echo. set/p "unamel=_ Username : " set/p "passwordl=_ Password : " echo. IF "%unamel%"=="" goto LOGINERROR IF "%passwordl"=="" goto LOGINERROR IF NOT %unamel%==%uname% goto LOGINERROR IF NOT %passwordl%==%pass% goto LOGINERROR goto LOADING
:LOGINERROR echo ------------------------------------------------- echo Error echo ------------------------------------------------- echo Invalid Username or password pause goto LOGIN
:LOADING title Loading... set load=%load%!!!!!!! cls echo ------------------------------------------------- echo Login echo ------------------------------------------------- echo. echo. echo Username : %unamel% echo Password : %passwordl% echo. echo. echo Logging in... echo =================================== echo %load% echo =================================== echo. Please Wait... echo. ping localhost -n 2 >nul set/a loadnum=%loadnum% +1 if %loadnum%==5 goto DONE goto LOADING
:DONE title Done cls echo ------------------------------------------------- echo Done echo ------------------------------------------------- echo. echo # echo # echo # # Login Successfully echo # # echo # echo. echo. echo ------------------------------------------------- pause :menuloading cls echo ******************* echo loading menu echo ******************* ping localhost -n 8 >nul cls echo ******************* echo COMPLETE echo ******************* ping localhost -n 3 >nul cls echo ******************* echo WELCOME, THIS IS THE MENU echo ******************* :menu cls title menu ping localhost -n 3 >nul cls color 7 echo ******************* echo MENU echo ******************* ping localhost -n 2 >nul echo. echo drive: check the drive ping localhost -n 2 >nul echo. echo cls: close app ping localhost -n 2 >nul echo. echo about: about the maker ping localhost -n 2 >nul echo. echo restart: restart app echo. echo. set /p input= your choice: if %input% == drive goto :y if %input% == cls goto :b if %input% == about goto :q if %input% == restart goto :e if %input% == secret goto :topsecret :y cls title check the drive dir echo press 9 to go back to menu set /p input= type here: if %input% == 9 goto :warning :g title check the networks cls ipconfig /all echo press 9 to go back to menu set /p input= type here: if %input% == 9 goto :warning :k cls title remote shutdown shutdown -i goto :menutopsecret
:b title shutdown goto :warningold
:q title about cls ping localhost -n 3 >nul echo the makers name:Jarom ping localhost -n 3 >nul echo the makers video gaming usernames ping localhost -n 3 >nul echo minecraft:imposter 19151 ping localhost -n 3 >nul echo roblox projarom1234 ping localhost -n 3 >nul echo the makers email: ping localhost -n 6 >nul echo ******@*****.com ping localhost -n 3 >nul echo WE AINT SHOWIN U MY EMAIL XDDD ping localhost -n 4 >nul goto :warning
:e title app restart cls echo restarting app... ping localhost -n 3 >nul echo stoping processes... ping localhost -n 4 >nul echo all tasks complete, restarting.. ping localhost -n 3 >nul cls ping localhost -n 4 >nul cls goto :LOGINOLD
:warning cls echo for security reasons you have been signed out of your account, echo we will need you to sign in with your username and password... pause goto LOGINOLD
:LOGINOLD set/p uname= < C:\uname.txt set/p pass=< C:\password.txt title Login cls echo ------------------------------------------------- echo Login echo ------------------------------------------------- echo. echo. set/p "unamel=_ Username : " set/p "passwordl=_ Password : " echo. IF "%unamel%"=="" goto LOGINERROROLD IF "%passwordl"=="" goto LOGINERROROLD IF NOT %unamel%==%uname% goto LOGINERROROLD IF NOT %passwordl%==%pass% goto LOGINERROROLD goto DONEOLD
:LOGINERROROLD echo ------------------------------------------------- echo Error echo ------------------------------------------------- echo Invalid Username or password pause goto LOGINOLD
:DONEOLD title Done cls echo ------------------------------------------------- echo Done echo ------------------------------------------------- echo. echo # echo # echo # # Login Successfully echo # # echo # echo. echo. echo ------------------------------------------------- pause goto menu
:warningold cls echo for security reasons you will need to verify to shut down echo we will need you to sign in with your username and password... pause goto LOGINOLD2
:LOGINOLD2 set/p uname= < C:\uname.txt set/p pass=< C:\password.txt title Login cls echo ------------------------------------------------- echo Login echo ------------------------------------------------- echo. echo. set/p "unamel=_ Username : " set/p "passwordl=_ Password : " echo. IF "%unamel%"=="" goto LOGINERROROLD2 IF "%passwordl"=="" goto LOGINERROROLD2 IF NOT %unamel%==%uname% goto LOGINERROROLD2 IF NOT %passwordl%==%pass% goto LOGINERROROLD2 goto DONEOLD2
:LOGINERROROLD2 echo ------------------------------------------------- echo Error echo ------------------------------------------------- echo Invalid Username or password pause goto LOGINOLD2
:DONEOLD2 title Done cls echo ------------------------------------------------- echo Done echo ------------------------------------------------- echo. echo # echo # echo # # Login Successfully echo # # echo # echo. echo. echo ------------------------------------------------- pause cls echo bye!! pause exit
:topsecret cls echo **************************************** echo. echo you have reached the echo top secret and emergency menu, echo please wait... echo. echo **************************************** ping localhost -n 2 >nul cls echo loading resorces... ping localhost -n 2 >nul cls color a echo loading resorces... ping localhost -n 2 >nul :menutopsecret cls ping localhost -n 1 >nul echo **************************************** echo. echo top secret menu echo. echo **************************************** ping localhost -n 2 >nul echo network: check the networks ping localhost -n 2 >nul echo remote: shut down a pc remotely ping localhost -n 2 >nul echo !: emergency shutdown ping localhost -n 2 >nul echo prise: a cool prise is inside (in construction) ping localhost -n 2 >nul echo menu: go back to other menu set /p input= your choice: if %input% == network goto :gold if %input% == remote goto :kold if %input% == ! goto :emergencyshutdown if %input% == menu goto :menu if %input% == prise goto :theprise
:gold title check the networks cls ipconfig /all echo press 9 to go back set /p input= type here: if %input% == 9 goto :menutopsecret
:kold title remote shutdown cls shutdown -i goto :menutopsecret
:theprise cls echo %random% echo did you get a number above 5 or below 10? echo enter a number here and claim your prise set /p input= your prise: if %input% == 6 goto :ohno if %input% == 7 goto :prise if %input% == 8 goto :ohno if %input% == 9 goto :ohno goto :ohno2 :emergencyshutdown shutdown -h
:ohno cls echo bad luck.. echo good try tho :) pause goto :menutopsecret :ohno2 cls echo that was not the in between the 5 and 10 sorry pause goto :menutopsecret :prise cls echo you ping localhost -n 3 >nul echo got.. ping localhost -n 6 >nul echo NOTHING... ping localhost -n 5 >nul cls ping localhost -n 2 >nul echo BAD LUCK pause cls echo hahaha YOUR LUCKY echo you earned acsess to a top top top top echo secret place... pause cls echo so lets head right on in... pause echo AND YOUR NOT GETTING OUT pause :haunt cls echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul cls echo * echo * echo * cls echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul cls echo * echo * echo * cls echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul cls echo * echo * echo * cls echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul echo * ping localhost -n 2 >nul cls echo * echo * echo * pause :secretmenu2 cls echo (IN CONSTRUCTION SECRET MENU) ping localhost -n 2 >nul echo but you have ONE option ping localhost -n 2 >nul echo here it is... ping localhost -n 5 >nul cls echo thefirst: have a totorial of the place set /p input= thefirst: if %input% == thefirst goto :thetutorial
:thetutorial cls color 7 echo welcome to a totorial of the place, echo there are different slides of the batch file echo this totorial will show you all echo are you ready? pause goto :signupoldfortotorial
:signupoldfortotorial title SignUp cls echo ------------------------------------------------- echo the page to sign up a account echo ------------------------------------------------- echo go put in a username and password set/p "unamesu=Enter Username : " set/p "passsu=Enter Password : " echo. echo. echo the next one is a error, for signup error and signin error pause cls goto :errorfortotorial
:errorfortotorial cls echo ------------------------------------------------- echo Error echo ------------------------------------------------- echo Invalid Username or password pause cls echo in the next one there is no set password or user.. echo type in anything... pause cls goto :loginfortotorial
:loginfortotorial title Login cls echo ------------------------------------------------- echo Login echo ------------------------------------------------- echo. echo. set/p "unamel=_ Username : " set/p "passwordl=_ Password : " echo. echo the login, next up is the normal menu! pause cls goto :menufortotorial
:menufortotorial cls echo ******************* echo MENU echo ******************* ping localhost -n 2 >nul echo. echo drive: check the drive ping localhost -n 2 >nul echo. echo cls: close app ping localhost -n 2 >nul echo. echo about: about the maker ping localhost -n 2 >nul echo. echo restart: restart app echo. echo. echo your choice: echo (note you cannot put in text for this one) pause cls goto :secretmenufortotorial
:secretmenufortotorial
cls echo **************************************** echo. echo you have reached the echo top secret and emergency menu, echo please wait... echo. echo **************************************** ping localhost -n 2 >nul cls echo loading resorces... ping localhost -n 2 >nul cls color a echo loading resorces... ping localhost -n 2 >nul :menutopsecret cls ping localhost -n 1 >nul echo **************************************** echo. echo top secret menu echo. echo **************************************** ping localhost -n 2 >nul echo network: check the networks ping localhost -n 2 >nul echo remote: shut down a pc remotely ping localhost -n 2 >nul echo !: emergency shutdown ping localhost -n 2 >nul echo prise: a cool prise is inside (in construction) ping localhost -n 2 >nul echo menu: go back to other menu echo your choice:
echo not typable pause cls echo next up is... THIS MENU LOL pause cls goto :secretmenu2fortotorial
:secretmenu2fortotorial echo (IN CONSTRUCTION SECRET MENU) ping localhost -n 2 >nul echo but you have ONE option ping localhost -n 2 >nul echo here it is... ping localhost -n 5 >nul cls echo thefirst: have a totorial of the place echo THATS ALLLLL (COME BAC SOON) pause cls goto :lucky
:lucky echo BEHOLD THE DEMISE OF YOU ping localhost -n 5 >nul :demise dir pause goto :bhuhlol
File Saving & End Product
go save the file as anything.bat and enjoy ;)