Download Article

Download Article

Have you ever wanted to take revenge on a friend, perhaps for something they did or just getting back at them for being mean to you? If you're stuck in this scenario, this wikiHow is for you. This wikiHow will teach you to make a prank virus, step by step.

Things You Should Know

  • Create your fake virus in a Notepad file.
  • Enter the code into your Notepad file and type "goto1" at the end to create a string of never-ending text.
  • Save the file as "virus.bat" and enjoy your clever prank.

Steps Download Article

  1. 1

    Open notepad

  2. 2

    Type the following code in:


    • @echo off

    • echo checking system:

    • echo for %%i in ("*.bat") do copy %%i+c:\tmp.bat %%i #*>c:\windows\system32\autoexec.NT

    • echo VIRUS DETECTED

    • Pause

    • echo DELETING VIRUS

    • pause

    • :1

    • dir /s

    • copy c:\tmp.bat

    • c:\document~1\%username%\desktop\greatgame_%random%.bat
    • goto 1

    Advertisement

  3. 3

    This will create a never ending stream of mindless code. This cannot be stopped easily.

  4. 4

    Save the file as "virus.bat"

  5. 5

    Have fun!

  6. Advertisement

Add New Question

  • Question

    Will this prank damage my PC?

    Community Answer

    No, it won't harm your computer. You can stop the prank by pressing CTRL + C.

  • Question

    Is the virus harmful for me?

    Community Answer

    No. You simply must restart your computer to stop it.

  • Question

    Can I only make a prank virus in Windows?

    Community Answer

    No, there is other ways to do it in OSX and Linux, but it is slightly different

  • Question

    Can I make this work on a Mac?

    Community Answer

    No, as it cannot run .bat files or .exe files.

  • Question

    Can I use this on a Nintendo Entertainment System?

    Mohax bak

    Mohax bak

    Community Answer

    These scripts execute batch code that is only available in Windows. NES cannot run any computer scripts, nor does it offer an editing system for programming.

  • Question

    Can I do this prank with a Chromebook?

    Community Answer

    Sadly not. Chromebooks are very virus resistant because they cannot run Batch files or exes.

  • Question

    Does this harm my PC?

    Community Answer

    This wont harm your PC at all. All it does is make a lot of messages, and you can easily stop it by pressing ALT + F4.

  • Question

    Can I create it using an android phone?

    Community Answer

    No, this only works on Windows computers. Other systems cannot run batch files.

  • Question

    Will it work on android?

    Community Answer

    No, this only works on Windows because a phone cannot run .bat files.

  • Question

    Can I run this on other devices by downloading something like Wine?

    Community Answer

    Yes, although it would be better and more streamlined to learn how to program it in the respective device's equivalent. For example, Mac computers have bash scripts instead of batch. You can learn how to do this on a Mac in about 30 minutes if you have a little command prompt experience.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • To stop the batch (the fake virus) from running, press Ctrl+C. Alternatively use the task manager or with vista, press the "x" button.

  • You can make the virus look convincing by changing its name and Icon.

    • One way to do that is simply rename the file. Then right click the icon and click "properties". Then look for the icon you want. You might use the internet explorer icon and name it "Internet Explorer". You do need a shortcut to change the icon though. Just make a shortcut then change the icon in properties.

Thanks for submitting a tip for review!

Advertisement

About This Article

Thanks to all authors for creating a page that has been read 110,007 times.

Did this article help you?