Cool Batch Files

Picture of Cool Batch Files
OK, I'm going to assume that you already have batch experience and don't need me to explain every command and every symbol and every thing that is typed. So here we have four
different batch files. If you have no experience with batching, I suggest you try this tutorial:

I'll just wait here.

Remove these adsRemove these ads by Signing Up

Step 1: Color Tester

Picture of Color Tester
Here is the code for testing colors. It's simple and it can be pretty useful.

@echo off
help color
echo ----------------------------------------------------------
echo Type a color code to test colors.
echo To exit, just press the X.
set/p color=
color %color%
goto test

Step 2: Portals

Picture of Portals
In the zip. folder in the last step, I give you a portal that goes to
But here, I will show you a batch file that you can customize to go to multiple websites.
Here it is:

@echo off
color 0a
echo This is the site locater. Choose the # of the site you would like to go to.
echo 1=
echo 2=
echo 3= www.internet
echo 4=
echo 5=
echo 6=
set/p "number=-->"
if %number%==1 GOTO 1
if %number%==2 GOTO 2
if %number%==3 GOTO 3
if %number%==4 GOTO 4
if %number%==5 GOTO 5
if %number%==6 GOTO 6
goto end
goto end
goto end
goto end
goto end
goto end

You may replace the listed websites with any of your own if you want.

Ink Ninja1 year ago
I know that it's not exactly a ding, but using Ctrl + G in batch causes a beep of sorts.
lizzyd7101 year ago
I think to do that you would have to replace the URLs with the document adress. Like for Windows you would do C:\Users\Person\Desktop\Programs
Thats my best guess.
sam577191 year ago
Type this to make the ding sound (put this after echo (DING!):

rem Making the temp file
if exist temp%num%.vbs goto num
echo ' > "temp%num%.vbs"
echo set speech = Wscript.CreateObject("SAPI.spVoice") >> "temp%num%.vbs"
echo speech.speak "Ding!" >> "temp%num%.vbs"
start temp%num%.vbs
del temp%num%.vbs
sam577191 year ago
if u want to make the ding sound click on the bit where it says ding & press Ctrl + Shift + G
el-xavi261 year ago
Dude you are awesome do you have a youtube account making this ?
KFallen2 years ago
In the part of the script where it says ding, press Ctrl+Shift+G and it should print a character that says BEL, highlited black. When you run it again, it will sound the system bell. you can also type this into cmd. Depending on the text editor u use, it may show it or not. I use Notepad++. Here is a list of other special commands(if you type them into cmd, most of the print out a character, such as a heart of spade.):

~ Shift + Esc = (ESC)
~ Ctrl + E = (ENQ)
~ Ctrl + R = (DC2)
~ Ctrl + Pause\Break = (ETX)
 ~ Ctrl + Shift + Y = (EM)
~ Ctrl + Shift + W = (ETB)
~ Ctrl + Shift + O = (SI)
~ Ctrl + Shift + A = (SOH)
~ Ctrl + Shift + D = (EOT)
~ Ctrl + Shift + G = (BEL)
~ Ctrl + Shift + H = (BS)
~ Ctrl + Shift + Z = (SUB)
~ Ctrl + Shift + X = (CAN)
~ Ctrl + Shift + C = (ETX)
~ Ctrl + Shift + v = (SYN)
~ Ctrl + Shift + B = (STX)
~ Ctrl + Shift + N = (SO)
~ Ctrl + Shift + 6 + (RS)
~ Ctrl + Shift + -(Dash) = (US)

You may not be able to seem them up here, but the characters look like the ones in parenthesis ieg. (SUB), (BEL)
On some text editors, it they will show up like symbols. Note that these characters cannot be copied and pasted.
nhepworth2 years ago
if you want to make a sound go off for a timer what you could do is have an audio recording of a DING! sound or whatever. The you could use the START command to start the audio file, then to end the sound i am sure there is a close window command. However, i do not know of it because i have never had to use it. This would make it much more difficult to get off the internet though. You would have to compact the audio file into same folder as the batch file. Possibly you could variate the locker batch file that can be found online. This batch file hides things on the desk top until it is unlocked. You could variate that into your batch file so that it requires no password and only appears for a short time. thus you would be able to call upon an audio file that, in theory, be saved to the desktop.
if you have any questions or need the locker batch file email me at
thillryan2 years ago

to open the file you cant just put:


you need:

start "C:\test.txt"

or to open a *.bat

call file.bat
hwalker42 years ago
yeah you could easily e.g
@echo off

would open file.txt or..

just typing the file name should work
tinker2343 years ago
ok thanks
tinker2343 years ago
nice could i use it to acess folders and keep documents
jklujm (author)  tinker2343 years ago
I don't know how, but you probably could.
tinker2343 years ago
wow got to do it

Get More Out of Instructables

Already have an Account?


PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!