Do you want to play a trick on your friends? Try this shocking but harmless virus. Read on to find out how to execute it.

Part 1
Part 1 of 2:

Writing and Saving the Code

  1. 1
    Run Notepad. Notepad will allow you to input text with very little formatting. Click Start -> All Programs -> Accessories -> Notepad.
    • If you're on a Mac, use TextEdit.
  2. 2
    Input a small batch file. Put the following into your text file (without the bullets):
    • @echo off
    • echo Message here.
    • shutdown -s -f -t 60 -c "type a message you want to appear here."
    Advertisement
  3. 3
    Click File, then Save As.
  4. 4
    Name your file.
  5. 5
    Change the .txt extension to .bat or .cmd.
  6. 6
    Change the ".txt bar" to "All Files".
  7. 7
    Click Save.
  8. 8
    Close Notepad.
  9. Advertisement
Part 2
Part 2 of 2:

Making a Fake Icon

  1. 1
    Right click on the desktop and go over to "New," then click "Shortcut".
  2. 2
    For the location of the shortcut, choose your virus.
  3. 3
    Click "Next".
  4. 4
    Give the shortcut a name that your victim will or might click on.
  5. 5
    Click on "Finish".
  6. 6
    Right click on the shortcut you have just made and choose "Properties".
  7. 7
    Click on the "Choose icon" button and scroll through the list of icons.
  8. 8
    Choose an icon that the name of your file. Click on it and hit "OK" twice.
    • Note that this will not work on Windows 7 Pro
  9. Advertisement

Community Q&A

  • Question
    Will this harm the computer at all?
    Community Answer
    Community Answer
    No, this only shuts the computer down. The user may lose any open and unsaved files, but the computer itself will be unharmed.
  • Question
    What do the characters S, F, T, and C signify?
    MasterBeiber Everything
    MasterBeiber Everything
    Community Answer
    S is for shutdown, F for force, T for timer, and C to do a message.
  • Question
    Will the PC that I run this on be able to turn back on?
    Community Answer
    Community Answer
    Yes, this only shuts down the computer. It will turn back on normally and nothing will be harmed.
Advertisement

Warnings

  • Do not execute such viruses on computers that must be available 24 hours a day, such as the ones in hospitals.
    ⧼thumbs_response⧽
  • If you use a shutdown-countdown, you should have enough time to abort the countdown.
    ⧼thumbs_response⧽
  • Only do this to someone who can handle such a prank!
    ⧼thumbs_response⧽
  • Once this virus has been clicked on, there is often no way to stop it. However, if you need to terminate the shutdown for whatever reason, go to command prompt and type in this following command: "shutdown /a". It will immediately terminate the fake virus.
    ⧼thumbs_response⧽
  • Some antiviruses will detect this as a virus
    ⧼thumbs_response⧽
Advertisement

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, 197 people, some anonymous, worked to edit and improve it over time. This article has been viewed 1,489,525 times.
713 votes - 76%
Co-authors: 197
Updated: October 25, 2022
Views: 1,489,525
Categories: Computer Pranks
Advertisement