Variant of Batch programms made by me.
Variant of Batch programms made by me.

In this Instructable i'm going to upload a variant of Batch programms all made by me. I will expand this Collection and add more Batch programms in the next few months. How many programms I upload deppends on how much time I have, caused to me still going to school. I hope you guys like all I post here. You can also message me and tell me what my next programm shall be about and if I find time, I will try to make it. :)

Step 1: Passworded Command Prompt

Variant of Batch programms made by me.

This is my Passworded Command Prompt, it has taken me a long time to make this and I hope you guys like it :)

It is fully commentated with REM so everyone can understand what each part of it is doing.

Sorry for some wrong spellings, I'm German :) Please leave a comment and tell me what i should improve.

Thank you and have fun with my programm.


Copy this script into your notepad and save it with the ending .bat:

REM Copyright Perry Liedtke

@echo off :home title Log in to CMD color 07 cls echo. echo Cmd Accounts echo ============= echo. echo [1] Log In echo [2] Sign Up echo [3] Exit echo. set /p op= if %op%==1 goto 1 if %op%==2 goto 2 if %op%==3 goto 3 goto error

REM This is the menu for logging in, signing up and exiting

:2 cls echo Sign Up echo ====================================== echo. set /p newname="Enter new username:" if "%newname%"=="%newname%" goto inputname

REM If you decide to sign up, you get directed the sign up site

:inputname cd "%userprofile%\documents" if exist "cmdacoBin" goto skip if not exist "cmdacoBin" goto noskip

REM This is used to search the Batch file, your name and password are gonna be in

:noskip md "cmdacoBin" goto skip

REM If the Batchfile doesnt exist, this will create it

:skip cd "%userprofile%\documents\cmdacoBin" if exist "%newname%.bat" goto namexist if not exist "%newname%.bat" goto skip2

REM If the Batchfile is allready existing, this will check if your chosen username is allready taken or not REM If it wasnt existing, then it will check if your chosen username is allready taken or not

:skip2 echo set realusername=%newname%> "%newname%.bat" goto next

REM This will type your username into the Batchfile

:next echo. set /p pswd=Enter new Password: if "%pswd%"=="%pswd%" goto inputpass

REM This will direct you to your password selection

:inputpass cd "%userprofile%\documents\cmdacoBin" echo set password=%pswd%>> "%newname%.bat" goto next1

REM This will type your Password into the Batchfile, your username is allready in

:namexist echo. echo The entered username already exists. echo Press any key to return. . . pause >nul goto 2

REM This is what it sais if your chosen username is allready taken

:next1 cls echo Cmd Accounts echo ============ echo. echo Your account has been successfully created! echo. pause goto home

REM Your account has been created

:1 color 07 cls echo Cmd Accounts Log In echo ================================ echo. Set /p logname=Username: if "%logname%"=="%logname%" goto 2.1

REM When you decide to Log in, you get directed here

:2.1 echo. set /p logpass="Password:" if "%logpass%"=="%logpass%" goto login

REM If your password is typed in, the computer will check if it is right

:login cd "%userprofile%\documents\cmdacoBin" if exist "%logname%.bat" goto call if not exist "%logname%.bat" goto errorlog

REM If the Batchfile is still existing, you get directed call REM If the Batchfile isn't existing anymore, you get directed to errorlog

:call call "%logname%.bat" if "%password%"=="%logpass%" goto logdone goto errorlog

REM If all was right, you get directed to logdone REM If something you typed in was wrong, you also get directed to errorlog

:errorlog color 0c echo. echo Username or Password incorrect. echo Access denied. pause >nul goto home

REM This is the site you see, when you did something wrong. You get directed back to home

:logdone cls echo Command Prompt echo ============== echo. echo Successfully logged in! echo. pause goto account

REM This is the site you see, when everything was right

:account cls cd "%userprofile%\documents\cmdacoBin" call "%realusername%color.bat" call "%realusername%.bat" color %colorcode% cls echo. echo ------------------------------------------------------------------------------- echo %realusername% echo ------------------------------------------------------------------------------- @echo off break off Title Command Prompt color 0a cls

echo Type "home" any time to go to the current user profile directory. echo Type "desktop" any time to go to the current user desktop. echo. echo Type help to see list of common commands like cd, rd, md, del, echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls. echo Type [command]/? for detailed info. echo. pause cls

REM this is your basic command prompt

:cmd echo Directory: %CD% set /P CMD=Command: if "%CMD%" == "cls" goto cls if "%CMD%" == "home" goto home2 if "%CMD%" == "desktop" goto desktop if "%CMD%" == "red" goto red if "%CMD%" == "green" goto green if "%CMD%" == "normal" goto normal if "%CMD%" == "blue" goto blue if "%CMD%" == "grey" goto grey if "%CMD%" == "ocker" goto ocker if "%CMD%" == "yellow" goto yellow if "%CMD%" == "purple" goto purple if "%CMD%" == "white" goto white

%CMD% cd C:\ goto cmd

REM This is the list off all shotcutted commands

:cls cls goto cmd

REM This is cls

:home2 cd /d %USERPROFILE% cls goto cmd

REM this will clear your cmd progress

:desktop cd /d %SystemDrive%\Users\%USERNAME%\Desktop cls goto cmd

REM This will direct you to your desktop

:red color 0c cls goto cmd

REM This will change your cmd letters to red

:green color 0a cls goto cmd

REM This will change your cmd letters to green

:blue color 09 cls goto cmd

REM This will change your cmd letters to blue

:normal color 07 cls goto cmd

REM REM This will change your cmd letters back to normal

:grey color 08 cls goto cmd

REM This will change your cmd letters to grey

:ocker color 06 cls goto cmd

REM This will change your cmd letters to ocker

:yellow color 0e cls goto cmd

REM This will change your cmd letters to yellow

:purple color 05 cls goto cmd

REM This will change your cmd letters to purple

:white color 0f cls goto cmd

REM This will change your cmd letters to white

Step 2: Website Unlocker

Variant of Batch programms made by me.

This Batch programm is used to access websites that are blocked by your school or your boss at work. :)

I hope you guys like it and as allways please leave a comment and tell me what i should improve.

Thank you and have fun with my programm. :)



This is the Version for Firefox, down below there is also one for Google Chrome , Internet explorer and Opera.

Copy this script into your notepad and save it with the ending .bat:

REM Copyright Perry Liedtke

:A @echo off Title Website Unlocker color 0f echo Enter the website you would like to unlock set input= set /p input= Enter your Website here: if https://%input%==goto A if NOT B echo Processing Your request ping localhost>nul echo ------------------------------------------------------------------------------------- echo If you do not clost this in 45 seconds you will go to **ENTER WEBSITE HERE** echo ------------------------------------------------------------------------------------- ping localhost>nul echo This is the IP= ping https://%input%==goto set input= set /p input= If you want to open this adress please enter the IP here: start firefox.exe https://%input%==goto set input2= set /p input2= if https://%input%==goto exit goto exit ping localhost -n 45 >nul start firefox.exe **ENTER WEBSITE HERE** exit :exit exit

This is the Google Chrome version:

REM Copyright Perry Liedtke

:A @echo off Title Website Unlocker color 0f echo Enter the website you would like to unlock set input= set /p input= Enter your Website here: if https://%input%==goto A if NOT B echo Processing Your request ping localhost>nul echo ------------------------------------------------------------------------------------- echo If you do not clost this in 45 seconds you will go to **ENTER WEBSITE HERE** echo ------------------------------------------------------------------------------------- ping localhost>nul echo This is the IP= ping https://%input%==goto set input= set /p input= If you want to open this adress please enter the IP here: start chrome.exe https://%input%==goto set input2= set /p input2= if https://%input%==goto exit goto exit ping localhost -n 45 >nul start chrome.exe **ENTER WEBSITE HERE** exit :exit exit

This is the Internet Explorer version:

REM Copyright Perry Liedtke

:A @echo off Title Website Unlocker color 0f echo Enter the website you would like to unlock set input= set /p input= Enter your Website here: if https://%input%==goto A if NOT B echo Processing Your request ping localhost>nul echo ------------------------------------------------------------------------------------- echo If you do not clost this in 45 seconds you will go to **ENTER WEBSITE HERE** echo ------------------------------------------------------------------------------------- ping localhost>nul echo This is the IP= ping https://%input%==goto set input= set /p input= If you want to open this adress please enter the IP here: start iexlore.exe https://%input%==goto set input2= set /p input2= if https://%input%==goto exit goto exit ping localhost -n 45 >nul start iexplore.exe **ENTER WEBSITE HERE** exit :exit exit

Last but not least, this is the Opera version:

REM Copyright Perry Liedtke

:A @echo off Title Website Unlocker color 0f echo Enter the website you would like to unlock set input= set /p input= Enter your Website here: if https://%input%==goto A if NOT B echo Processing Your request ping localhost>nul echo ------------------------------------------------------------------------------------- echo If you do not clost this in 45 seconds you will go to **ENTER WEBSITE HERE** echo ------------------------------------------------------------------------------------- ping localhost>nul echo This is the IP= ping https://%input% set input= set /p input= If you want to open this adress please enter the IP here: start opera.exe https://%input% set input2= set /p input2= if https://%input% exit goto exit ping localhost -n 45 >nul start opera.exe **ENTER WEBSITE HERE** exit :exit exit

 
 

Tag cloud

make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel