3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Batch File Prank

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

Step 1Getting Started

Getting Started
 Okay, first you need to open notepad as this is where you'll type in your batch file.
« Previous StepDownload PDFView All StepsNext Step »
23 comments
Apr 23, 2010. 8:01 AMnova says:
 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!! 
Feb 16, 2011. 7:06 PMmessmaker says:
@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|:
Feb 17, 2011. 2:42 PMnova says:
Woops, yeah, i meant top put just msg, instead of echo msg
Jun 7, 2010. 12:16 PMjediking14 says:
The msg* thing never works with me...
Feb 19, 2011. 11:09 AMmessmaker says:
@echo off
msg * hello
msg hello2
pause





Run that and see if one of those commands work.,
Jun 9, 2010. 7:44 AMnova says:
yeah, sometimes it decides to screw around with you, it's kind of annoying...
Jun 10, 2010. 8:38 AMjediking14 says:
Feel ya on that brother.
Jun 12, 2010. 2:10 PMnova says:
Finally. someone who knows the feeling, i tell people this and they're like what?
Feb 16, 2011. 7:12 PMmessmaker says:
@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 (:
Apr 25, 2010. 12:29 PMnova says:
 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. 
Apr 23, 2010. 8:07 AMnova says:
 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!!
Apr 23, 2010. 9:42 AMnova says:
also, would you like to collaborate on a large batch file?
Apr 25, 2010. 12:28 PMnova says:
(removed by author or community request)
Feb 16, 2011. 7:14 PMmessmaker says:
could i be in on this? (:
Feb 17, 2011. 2:44 PMnova says:
Sure, we never really did figure out what we were going to do, so for sure.
Feb 21, 2011. 8:50 AMmessmaker says:
i have added you both to windows live.
im looking forward to working with you both.
Feb 18, 2011. 10:52 PMnova says:
Absolutely, rahulbumwatt, you could start a group email maybe? As i don't have messmaker's.
Feb 16, 2011. 7:19 PMmessmaker says:
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

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
2
Author:rahulbumwatt