This is also only made to help people under stand batch files more! it will only ping the website and give the ip address but used a lot of different batch codes to help people learn how to use them. if you server blocks ip and web addresses just find a proxy site.
!!!THIS DOES NOT WORK ON ALL SERVERS!!!!
For this instructable you will need:
1.Command prompt (To find this type CMD in run)
2.Notepad
3.BAT TO EXE coverter (I will include this file)
4.20 Minutes
5.(Optional) Photoshop
6.(Optional)Photoshop plug in(I will include this file P.S i did not make this plug in)
Also, the program is harmless and the school/work place cannot find out you are using it unless they look at your site history.(the history will not show the site address only the IP eg. 127.58.495.13)
Remove these ads by
Signing UpStep 1Looks
First open notepad and type:
@echo off
COLOR 3
echo thinking....
:START
SET /A CO= %RANDOM%
IF %CO% EQU 1 COLOR 1
IF %CO% EQU 2 COLOR 1
IF %CO% EQU 3 COLOR 1
IF %CO% EQU 4 COLOR 1
IF %CO% EQU 5 COLOR 1
IF %CO% EQU 6 COLOR 1
IF %CO% EQU 7 COLOR 1
IF %CO% EQU 8 COLOR 1
IF %CO% EQU 9 COLOR 1
IF %CO% EQU 10 COLOR 1
IF %CO% EQU 11 COLOR 2
IF %CO% EQU 12 COLOR 2
IF %CO% EQU 13 COLOR 2
IF %CO% EQU 14 COLOR 2
IF %CO% EQU 15 COLOR 2
IF %CO% EQU 16 COLOR 2
IF %CO% EQU 17 COLOR 2
IF %CO% EQU 18 COLOR 2
IF %CO% EQU 19 COLOR 2
IF %CO% EQU 20 COLOR 2
IF %CO% EQU 21 COLOR 3
IF %CO% EQU 22 COLOR 3
IF %CO% EQU 23 COLOR 3
IF %CO% EQU 24 COLOR 3
IF %CO% EQU 25 COLOR 3
IF %CO% EQU 26 COLOR 3
IF %CO% EQU 27 COLOR 3
IF %CO% EQU 28 COLOR 3
IF %CO% EQU 30 COLOR 3
IF %CO% EQU 31 COLOR 3
IF %CO% EQU 32 COLOR 4
IF %CO% EQU 33 COLOR 4
IF %CO% EQU 34 COLOR 4
IF %CO% EQU 35 COLOR 4
IF %CO% EQU 36 COLOR 4
IF %CO% EQU 37 COLOR 4
IF %CO% EQU 38 COLOR 4
IF %CO% EQU 39 COLOR 4
IF %CO% EQU 40 COLOR 4
IF %CO% EQU 41 COLOR 5
IF %CO% EQU 42 COLOR 5
IF %CO% EQU 43 COLOR 5
IF %CO% EQU 44 COLOR 5
IF %CO% EQU 45 COLOR 5
IF %CO% EQU 46 COLOR 5
IF %CO% EQU 47 COLOR 5
IF %CO% EQU 48 COLOR 5
IF %CO% EQU 49 COLOR 5
IF %CO% EQU 50 COLOR 5
IF %CO% EQU 61 COLOR 6
IF %CO% EQU 62 COLOR 6
IF %CO% EQU 63 COLOR 6
IF %CO% EQU 64 COLOR 6
IF %CO% EQU 65 COLOR 6
IF %CO% EQU 66 COLOR 6
IF %CO% EQU 67 COLOR 6
IF %CO% EQU 68 COLOR 6
IF %CO% EQU 69 COLOR 6
IF %CO% EQU 70 COLOR 7
IF %CO% LSS 0 GOTO START
IF %CO% GTR 71 GOTO START
CLS
ECHO HELLO
PAUSE
Now i will explain what each part of the code does:
@echo off <<does not show command location
COLOR 3 <<<makes the color 3 (light blue)
echo thinking.... <<<< ECHO displays a message on command prompt
:START <<< this is a location were you can use the GOTO command
SET /A CO= %RANDOM% << this is a command that makes the computer wait for an input, but you put %random% after the = to make the computer chose a random number,this is what can make the program load
IF %CO% EQU 1 COLOR 1 <<this makes the computer check to see if the %random% number is equal to 1 etc... then it executes the command next to it, in this case COLOR 1
IF %CO% EQU 2 COLOR 1
(the real code goes up to 70 like above)
IF %CO% LSS 0 GOTO START <<< if the random number is less than 0 it goes back to :START
IF %CO% GTR 71 GOTO START <<< if the random number is higher than 70 it goes back to :START
CLS << this command clears all text on the screen
ECHO HELLO << this just says hello but it will be the welcome message
PAUSE <<< this is only here util we move onto the next part,but it will pause the screen
Now save the file as A.BAT and open it, it should load then chose a random color and then say Hello. if this does not work look over the code.
To edit the saved file right click and chose edit.
| « Previous Step | Download PDFView All Steps | Next Step » |











































to the very end of the file!
You do not have to put this line, %RANDOM% will not generate a value below zero or higher than 32,767.
...And so on.
"ping" is basically a "pause for xx seconds" command (when pinging to localhost).