Introduction: Computer Prank


preparation time=0.5-10 minutes
arrange time= 10-30 seconds
x-time= when executed, on startup, or after a desired time.(see step 4)
difficulty= 1.5-3

Batch is a good thing. You could send someone a message over the LAN, make the victim think there is a virus and even shut down someone's computer!

here are some commands:

@echo off ( @echo on)
makes the commands hide (or show). Put this at the beginning of your batch file.

echo (something)
displays the word "something" in the cmd window, use the "pause" or "ping localhost" command for the victim to be able to read it.

makes the program pause and wait for you to press any key displaying the message "press any key to continue..."

ping localhost -n(time in seconds)>nul
this is used to make a pause for some desired time in seconds

msg * (anything)
displays a dialog window with an "ok" button and a message "anything"

overwrites the file "filename.ext" with output of the command. If the file doesnt exist, it creates the file and writes to it

the same as the previous one, but it adds the output to the file instead of overwriting it.

stops the output of the command from showing

del (fullfilepath)\(filename.ext)
deletes the file "filename.ext" in "fullfilepath"

shutdown -(type) -f -t (time_in_seconds) -c "(message)"
shuts the computer down or restarts it depending on what "type" is (s for shutdown, r for restart) in "time_in_seconds" after activation (if you set it to 0, it will shut down immediately), forcing all the applications to close and leaving a message "message" (you could make it shut down without leaving the message by not typing " -c (message) ")

shutdown -a
aborts the shutdown

makes a new cmd window

start (fullfilepath)\(filename.ext)
opens the file "filename.ext" in "fullfilepath"

opens the instructables home page in the default browser

using these commands, write a file in notepad(each command on a new line)
and save as something.bat
(don't forget to select "all types" in the lower bar or the file will be saved as "something.bat.txt")
if you want to, you can convert it to *.exe format using the downloadable bat to exe converter or the online bat to exe converter.
if you are using only the commands that do not require victim interaction or viewing the cmd, you can make the app invisible (so the victim doesn't see the command prompt window)

Also, if you want to learn some more, there is plenty of instructables on batch.
I found this from online! there is an instrucable on this

Step 1: Picture 2