Introduction: Batch File Prank

Hi Boffins of the world!

Today I'm going to show you how to right a random batch file prank.

I'll say it right now, this is NOT A VIRUS, it's a piece of harmless fun!

Have fun!

Step 1: Getting Started

 Okay, first you need to open notepad as this is where you'll type in your batch file.

Step 2: The Actual File

 Okay so here is the actual file (feel free to copy and paste it -

@echo off
@echo WARNING VIRUS ATTACK!
@echo WARNING VIRUS ATTACK!
@echo WARNING VIRUS ATTACK!
@echo All Files Deleted. Reboot to Restore.
@echo Press Enter to Reboot
ping 1.1.1.1 -n 1 -w 5000 >NUL
@echo C: Drive Deleted
@echo WARNING! All Files Lost! Virus Detected 
@echo Contact Administrator
@echo WARNING! FIREWALL BREACHED!
pause
@echo WARNING! System Shutdown in 5!
ping 1.1.1.1. -n 1 -w 1000 >NUL
@echo WARNING! System Shutdown in 4!
ping 1.1.1.1 -n 1 -w 1000 >NUL
@echo WARNING! System Shutdown in 3!
ping 1.1.1.1 -n 1 -w 1000>NUL
@echo WARNING System Shutdown in 2!
ping 1.1.1.1 -n 1 -w 1000>NUL
@echo WARNING! System Shutdown in 1!
ping 1.1.1.1 -n 1 -w 1000 >NUL
@echo Man are you easy to fool! 




Step 3: Also...

 If you want you can change the last line of the batch file (@echo man are you easy to fool!) to this

shutdown -s -f -t 15 -c  

Which will cause the pc to shutdown in 15 seconds, but will do no lasting damage!

Well Bye-Bye!

Comments

author
forrestr6 made it!(author)2017-07-05

@echo off

@echo WARNING WINDOWS DEFENDER BREACH!

@echo WARNING WINDOWS DEFENDER BREACH!

@echo WARNING WINDOWS DEFENDER BREACH!

@echo All Files Deleted. Reboot to Restore.

@echo Press Enter to Reboot

ping 1.1.1.1 -n 1 -w 5000 >NUL

@echo C: Drive Deleted

@echo WARNING! All Files Lost! Virus Detected

@echo Contact Administrator

@echo WARNING! FIREWALL BREACHED!

pause

@echo WARNING! System Shutdown in 5!

ping 1.1.1.1. -n 1 -w 1000 >NUL

@echo WARNING! System Shutdown in 4!

ping 1.1.1.1 -n 1 -w 1000 >NUL

@echo WARNING! System Shutdown in 3!

ping 1.1.1.1 -n 1 -w 1000>NUL

@echo WARNING System Shutdown in 2!

ping 1.1.1.1 -n 1 -w 1000>NUL

@echo WARNING! System Shutdown in 1!

pause

SHUTDOWN /s /f /c "just a prank bro"

author
BubbaSkywalker made it!(author)2017-01-30

You can also mesh this with a windows error .vbs file with a simple opening command embedded into a fork bomb loop.

author
Janneske2 made it!(author)2016-06-12

here is the file

NOTE: it is not a real virus! REALLY!!!

Word Document.docx.bat
author
Janneske2 made it!(author)2016-06-12

here is the file

NOTE: it is not a real virus! REALLY!!!

Word Document.docx.bat
author
Janneske2 made it!(author)2016-06-12

here is the file

NOTE: it is not a real virus! REALLY!!!

Word Document.docx.bat
author
Janneske2 made it!(author)2016-06-12

I made this out of it:

@echo off

color 0a

timeout /T 1 /nobreak>nul

@echo WARNING! Virus Attack!

timeout /T 2 /nobreak>nul

@echo WARNING! Virus Attack!

timeout /T 3 /nobreak>nul

@echo WARNING! Virus Attack!

timeout /T 1 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo All files deleted. Reboot to restore.

@echo Press Enter to reboot.

pause>nul

cls

timeout /T 3 /nobreak>nul

@echo C:Drive deleted.

timeout /T 2 /nobreak>nul

@echo WARNING! All files lost.

timeout /T 1 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo Contact Administrator.

timeout /T 4 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo Virus Detected!

timeout /T 2 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo WARNING! System shutdown in 5!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 4!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 3!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 2!

timeout /T 1 /nobreak>nul

cls

@echo WARNING! System shutdown in 1!

timeout /T 2 /nobreak>nul

cls

timeout /T 1 /nobreak>nul

@echo PRANK!!!

timeout /T 1 /nobreak>nul

pause

author
jps4 made it!(author)2015-02-13

try this

:start %0
%0

author
MaxR2 made it!(author)2014-09-02

So, I pimped this code out a little bit! Please tell me if I can make anything more efficient or better, or even if I made any mistakes! THANKS! :)

@echo off

@echo WARNING VIRUS ATTACK!

@echo WARNING VIRUS ATTACK!

@echo WARNING VIRUS ATTACK!

@echo All Files Deleted. Reboot to Restore.

@echo Press Enter to Reboot

ping 1.1.1.1 -n 1 -w 5000 >NUL

@echo C: Drive Deleted

@echo WARNING! All Files Lost! Virus Detected

@echo Contact Administrator

@echo WARNING! FIREWALL BREACHED!

pause

@echo WARNING! System Shutdown in 5!

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 4!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 3!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 2!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo WARNING! System Shutdown in 1!

ping 1.1.1.1 -n 1 -w 1500>NUL

@echo Man are you easy to fool!

@echo Do you REALLY think I would make a virus to delete all files on your computer?

@echo Well, I might. But not this time.

@echo This time.

@echo THIS TIME.

@echo Press Enter to End

ping 1.1.1.1 -n 1 -w 4000 >NUL

@echo SIKE! Im deleting everything now!

@echo Now I will give you a REAL countdown!

pause

@echo DELETING ALL FILES IN 5

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 4

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 3

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 2

ping 1.1.1.1. -n 1 -w 1500>NUL

@echo DELETING ALL FILES IN 1

ping 1.1.1.1. -n 1 -w 1500>NUL

pause

color 2

:start

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto start

author
messmaker made it!(author)2011-02-16

could i be in on this? (:

author
nova made it!(author)2011-02-17

Sure, we never really did figure out what we were going to do, so for sure.

author
rahulbumwatt made it!(author)2011-02-18

Right then! we may as well get started! Nova, you already have my email, messmaker, ive sent you a private message. reply soon!

author
Alfred17k made it!(author)2013-10-25

Can I be in on this? I have a few years of practice with these sort of viruses. .




author
messmaker made it!(author)2011-02-21

i have added you both to windows live.
im looking forward to working with you both.

author
nova made it!(author)2011-02-18

Absolutely, rahulbumwatt, you could start a group email maybe? As i don't have messmaker's.

author
xXFrEnZyXx made it!(author)2012-08-09

Does this code work?

@echo off

color a
echo Please wait...
cls
pause>nul

Please reply ;D

------Contact Info--------
AIM: EliteOzzie
------------------------------

author
lukeford made it!(author)2012-07-01

i fixed your code for you

@echo off

color a
echo WARNING VIRUS ATTACK!
:sleep
ping 1.1.1.1 -n 1 -w 5000 >NUL
cls


echo All Files Deleted. Reboot to Restore.
ping 1.1.1.1 -n 1 -w 1000>nul
echo Press Enter to Reboot
pause>nul
cls

echo C: Drive Deleted
echo WARNING! All Files Lost! Virus Detected
echo Contact Administrator
:sleep
ping 1.1.1.1 -n 3 -w 1000>nul
cls
echo WARNING! FIREWALL BREACHED!
:sleep
ping 1.1.1.1 -n 3 -w 1000>nul
cls

echo WARNING! System Shutdown in 5!
ping 1.1.1.1. -n 1 -w 1000 >NUL
cls
echo WARNING! System Shutdown in 4!
ping 1.1.1.1 -n 1 -w 1000 >NUL
cls
echo WARNING! System Shutdown in 3!
ping 1.1.1.1 -n 1 -w 1000>NUL
cls
echo WARNING! System Shutdown in 2!
ping 1.1.1.1 -n 1 -w 1000>NUL
cls
echo WARNING! System Shutdown in 1!
ping 1.1.1.1 -n 1 -w 1000 >NUL
cls
echo Man are you easy to fool!
pause>nul

author
mthee1 made it!(author)2012-06-12

@echo off
title p@ythee Virus Killer
color 7c
echo.
echo Hey, You have a *** Very Dangerous Virus ***
echo.
echo.
echo Virus is Activating NOW . . . . .
ping localhost > nul
cls
echo Trying to remove ⌡öuX.dll . . . . .
ping localhost > nul
:_1
color cf
dir/s
goto:_1

author
mthee1 made it!(author)2012-06-12

That code is not for Prank...

@echo off
:a
explorer
goto:a

author
nova made it!(author)2010-04-23

 great file! the only thing i would add is: display the message warning in a message box with msg * WARNING VIRUS ATTACK! or you could make a continuos loop to the message, making it unclosable, with this code:

:msg
echo.
echo msg * WARNING VIRUS ATTACK!
goto msg

but besides that, thanks for the file!! 

author
jediking14 made it!(author)2010-06-07

The msg* thing never works with me...

author
messmaker made it!(author)2011-02-19

@echo off
msg * hello
msg hello2
pause





Run that and see if one of those commands work.,

author
nova made it!(author)2010-06-09

yeah, sometimes it decides to screw around with you, it's kind of annoying...

author
jediking14 made it!(author)2010-06-10

Feel ya on that brother.

author
nova made it!(author)2010-06-12

Finally. someone who knows the feeling, i tell people this and they're like what?

author
messmaker made it!(author)2011-02-16

@echo off
:A
msg * VIRUS ATTACK!
ping localhost -n 1 >nul
goto :A





that one is readable and better, even though i just made it up then|:

author
rahulbumwatt made it!(author)2011-02-18

Nice

author
nova made it!(author)2011-02-17

Woops, yeah, i meant top put just msg, instead of echo msg

author
rahulbumwatt made it!(author)2010-04-25

 Do you mean...


:A
@echo off
echo WARNING VIRUS ATTACK!
goto A

But that would open it so fast you wouldn't be able to read it!

BUT, i could do 

:A 
@echo off
echo WARNING VIRUS ATTACK!
pause
goto A

And that would work.

Thanks for the suggestion though!

author
messmaker made it!(author)2011-02-16

@echo off
msg * Windows has detected this as a virus. Please wait.
ping localhost -n 4 >nul
echo Windows is deleting the file...
ping localhost -n 3 >nul
:A
msg * VIRUS ATTACK!
goto :A




I just wrote the code then and i didnt test it, but it will work (:

author
nova made it!(author)2010-04-25

 no, if u put msg * a message box appears and stays there until you close it, with this code you can't close it, very useful! the msg box is seperate from the file. 

author
rahulbumwatt made it!(author)2010-04-25

 OR did you mean a .vbs file?

author
nova made it!(author)2010-04-23

 btw u would want to put that code at the end, because it will prevent the duration of the fileand you will need to shutdown thecomputer to get rid of the box, hope this helped!!

author
nova made it!(author)2010-04-23

also, would you like to collaborate on a large batch file?

author
rahulbumwatt made it!(author)2010-04-25

 Sure.

Right now i'm working on a real(ish) virus instructable.

If you'd give me your email or something i'll send it to you!


author
messmaker made it!(author)2011-02-16

im really sorry to say, but that code fails :P


if i fixed it up a bit and sent you a code, could u edit it with a proper code?

About This Instructable

90,209views

11favorites

License:

More by rahulbumwatt:Hacking Flash GamesBatch File Prank
Add instructable to: