aegarfgarhareherh.jpg
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!
 
Remove these adsRemove these ads by Signing Up

Step 1: Getting Started

notepad.jpg
 Okay, first you need to open notepad as this is where you'll type in your batch file.
xXFrEnZyXx says: Aug 9, 2012. 8:02 PM
Does this code work?

@echo off

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

Please reply ;D

------Contact Info--------
AIM: EliteOzzie
------------------------------
lukeford says: Jul 1, 2012. 9:42 PM
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
mthee1 says: Jun 12, 2012. 10:31 PM
@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
mthee1 says: Jun 12, 2012. 9:32 PM
That code is not for Prank...

@echo off
:a
explorer
goto:a
nova says: Apr 23, 2010. 8:01 AM
 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!! 
messmaker in reply to novaFeb 16, 2011. 7:06 PM
@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|:
rahulbumwatt (author) in reply to messmakerFeb 18, 2011. 11:44 AM
Nice
nova in reply to messmakerFeb 17, 2011. 2:42 PM
Woops, yeah, i meant top put just msg, instead of echo msg
jediking14 in reply to novaJun 7, 2010. 12:16 PM
The msg* thing never works with me...
messmaker in reply to jediking14Feb 19, 2011. 11:09 AM
@echo off
msg * hello
msg hello2
pause





Run that and see if one of those commands work.,
nova in reply to jediking14Jun 9, 2010. 7:44 AM
yeah, sometimes it decides to screw around with you, it's kind of annoying...
jediking14 in reply to novaJun 10, 2010. 8:38 AM
Feel ya on that brother.
nova in reply to jediking14Jun 12, 2010. 2:10 PM
Finally. someone who knows the feeling, i tell people this and they're like what?
rahulbumwatt (author) in reply to novaApr 25, 2010. 11:23 AM
 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!
messmaker in reply to rahulbumwattFeb 16, 2011. 7:12 PM
@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 (:
nova in reply to rahulbumwattApr 25, 2010. 12:29 PM
 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. 
rahulbumwatt (author) in reply to rahulbumwattApr 25, 2010. 11:28 AM
 OR did you mean a .vbs file?
nova in reply to novaApr 23, 2010. 8:07 AM
 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!!
nova in reply to novaApr 23, 2010. 9:42 AM
also, would you like to collaborate on a large batch file?
rahulbumwatt (author) in reply to novaApr 25, 2010. 11:27 AM
 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!


nova in reply to rahulbumwattApr 25, 2010. 12:28 PM
(removed by author or community request)
messmaker in reply to novaFeb 16, 2011. 7:14 PM
could i be in on this? (:
nova in reply to messmakerFeb 17, 2011. 2:44 PM
Sure, we never really did figure out what we were going to do, so for sure.
rahulbumwatt (author) in reply to novaFeb 18, 2011. 11:48 AM
Right then! we may as well get started! Nova, you already have my email, messmaker, ive sent you a private message. reply soon!
messmaker in reply to rahulbumwattFeb 21, 2011. 8:50 AM
i have added you both to windows live.
im looking forward to working with you both.
nova in reply to rahulbumwattFeb 18, 2011. 10:52 PM
Absolutely, rahulbumwatt, you could start a group email maybe? As i don't have messmaker's.
messmaker says: Feb 16, 2011. 7:19 PM
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?
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!