Complete guide to making fake virus jokes using Notepad

Last update: 09/05/2025
Author Isaac
  • You will learn how to create fun scripts with Notepad without causing real damage.
  • The codes shown are safe, ideal for playing harmless pranks.
  • Includes multiple real examples with commands batch and VBScript
  • Tips for customizing shortcuts and avoiding execution errors

prank virus

Have you ever wanted to play a harmless computer prank? Windows Notepad , though basic, becomes a powerful tool when combined with simple Batch or VBScript code. From making windows with funny messages appear to triggering unexpected sounds or opening dozens of pages in your browser, the possibilities for a harmless prank are endless.

In this article, you'll discover how to create various "fake viruses" that are completely safe and that you could use to scare, surprise, or simply make your friends laugh. Always remember to use them responsibly , as you could be in for a nasty surprise if someone doesn't find them funny.

What is a hoax virus?

A joke virus is simply a set of instructions designed to simulate a dangerous situation on a computer , such as the removal of the operating system or the crashing of programs. In reality, these scripts do not cause permanent damage, alter real files, or capture personal information.

These pranks are usually used for humorous purposes to surprise friends or family. When executed, the computer may emit annoying sounds, simulate console commands, or generate fake alerts. Once the script is closed , everything returns to normal.

Getting Started: Basic Tools

To create these kinds of pranks, all you need is Notepad , which comes pre-installed on all Windows computers. This text editor allows you to save files with extensions like .bat or .vbs, which is essential for running the necessary commands.

In addition, it is advisable to have some basic knowledge on how to close processes. in case the joke gets out of hand. You can do this from the Task Manager with Ctrl + Shift + I.

  The Right Way to Fix iMessage Signed Out Error on iPhone

Examples of hoax viruses with code .bat

joke notepad

Files with the .bat extension are scripts that run in the command prompt . Here are some of the most popular ones you can try:

Matrix.bat

It simulates a console that displays random numbers as if it were a scene from "The Matrix".

@echo off color 02 :matrix echo %random% %random% %random% goto matrix

SonidoTroll.bat

Plays a sound on a loop . You can change the audio file to a different one.

@echo off :sound set "file=Skip.wav" (echo Set Sound = CreateObject("WMPlayer.OCX.7") echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration = 0 echo wscript.sleep 100 echo loop echo wscript.sleep (int(Sound.currentmedia.duration)+1)*1000) > sound.vbs start /min sound.vbs goto sound

OpenPages.bat

It constantly opens multiple web pages until it is manually stopped.

@echo off :loop start www.google.com start www.facebook.com goto loop

OpenImage.bat

It endlessly reproduces a specific image , saturating the computer's resources.

@echo off :imgx start cat.jpg goto imgx
Types of computer viruses
Related articles:
8 Types of Computer Viruses Current in 2021

Examples using .vbs: Using VBScript in Jokes

VBScript is another language that allows you to create more visual and customized scripts . In this case, you can manipulate pop-up windows, sounds, and other system functions.

Messages.vbs

Displays multiple message boxes one after the other with custom text.

do msgbox("Hello", 16, "Message") msgbox("What are you doing?", 16, "Message") msgbox("Do you want to go out?", 16, "Message") loop

Ghost.vbs

Open Notepad and type "HELLO" repeatedly without the user having any control.

Set wshshell = wscript.CreateObject("wscript.shell") do wshshell.run "Notepad" wscript.sleep 500 wshshell.AppActivate "Notepad" wshshell.SendKeys "H" wscript.sleep 200 wshshell.SendKeys "O" wscript.sleep 200 wshshell.SendKeys "L" wscript.sleep 200 wshshell.SendKeys "A" loop

A more elaborate prank: the fake EsGeeks virus

On the EsGeeks website, we found a more elaborate code that simulates antivirus alerts, terminal commands , and custom messages . This creates a whole sequence that makes it appear as if the system has been infected.

This script uses variables such as the username, pop-ups, console commands, and even reactions based on the user's decisions. You can save it as .vbs and run it whenever you want.

The curious thing is that it even simulates the deletion of folders like "system32" , something that will make more than one person's hair stand on end, although in reality absolutely nothing dangerous happens.

  Yourphone.exe on Windows 10 | What It Is and How to Stop It

How to save and run codes

For these codes to work correctly, you must follow a couple of simple steps :

  1. Open Notepad
  2. Paste one of the codes
  3. Click “File” → “Save As…”
  4. Under “Type”, select “All Files”
  5. Give it a name with the corresponding extension, for example: matrix.bat o virusfalso.vbs
  6. Save and run the file by double-clicking on it

Advanced Customization: Shortcuts and Tips

If you want to take the prank to the next level, you can create shortcuts with custom icons . This will make the file look like a legitimate application or an attractive program to the victim.

  • Right-click on the desktop and choose “New” → “Shortcut”
  • Find your .vbs or .bat file
  • Choose a catchy name like “FreeGames” or “UpdateDriver.exe”
  • Change the icon from the “Properties” tab → “Change Icon”

Always remember to test the file before sharing it to ensure it doesn't conflict with any system settings. A virtual machine can be your best friend for these experiments.

You can also add more commands, sounds, or conditions to make the prank more personalized. Just make sure everything is reversible.

Playing a digital prank with Notepad can be a lot of fun if done with caution and responsibility . There are many creative ways to surprise your friends without causing any harm. From simulating a critical system failure to repeating annoying sounds or unexpected behaviors, the important thing is to keep it all within the realm of humor.

Whether you choose to use simple commands in .bat or scripts made in .vbsThe key is knowing how to stop them and explain that it was all a joke. Explore, learn, laugh, and experiment!

What are false positives in antivirus software and how to avoid them?
Related articles:
What are false positives in antivirus software and how to avoid them: Causes, risks, and best practices
  How to turn rounded edges on and off in Windows 11
Isaac

Isaac

Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.