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 computer prank without causing any real damage? The Notepad of Windows, although basic, becomes a powerful tool when combined with simple Batch or VBScript code. From popping up windows with funny messages to making unexpected sounds or opening dozens of pages in the browser, the possibilities for playing a good prank are endless.

In this article you will discover how to create various “fake viruses” that are completely safe. and that you could use to scare, surprise or just make your friends laugh. Always remember to use them responsibly., because if someone doesn't take it with humor, you could get upset.

What is a hoax virus?

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

These jokes are usually used for humorous purposes. to surprise friends or family. When running, the computer may make annoying sounds, simulate console commands, or generate false alerts. Once the script, everything returns to normal.

Getting Started: Basic Tools

To create this type of jokes you only need Notepad, which comes included with all Windows computers. This text editor allows you to save files with extensions like .bat or .vbs, which is key to executing 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 Ctrl + Shift + I.

  Find out how to Change Help Language in Snapchat

Examples of hoax viruses with code .bat

joke notepad

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

Matrix.bat

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 in 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

Constantly opens multiple web pages until it is stopped manually.

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

OpenImage.bat

Plays a specific image infinitely, saturating the team's resources.

@echo off :imgx start cat.jpg goto imgx
Types of computer viruses
Related article:
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 another with personalized texts.

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 find a more elaborate code than simulates antivirus alerts, commands terminal and personalized messages. Here an entire sequence is created that makes it appear that 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 funny 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 nothing dangerous happens at all.

  How to use cleanmgr in Windows to free up space and optimize your system

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 iconsThis will make the file appear to be 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”

Don't forget to always 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 everything within the language 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 article:
What are false positives in antivirus software and how to avoid them: Causes, risks, and best practices