- A fake virus message can surprise by simulating errors, without causing real harm.
- VBScript and batch files allow you to customize the joke to suit the target user.
- Responsible use and pre-testing of the script are key to a safe joke.
Playing pranks on friends and family is part of digital culture, and fake virus messages created with Notepad remain one of the most original ways to surprise (or scare) anyone. It's no longer just about sending memes or suspicious links: trolling has evolved, and people are increasingly looking for more elaborate experiences that provoke an unexpected reaction. Here's everything you need to know to create your own fake virus message on Windows , and, most importantly, how to do it safely and have fun.
Creating a digital prank that looks like a virus requires some creativity and using readily available tools, such as Notepad. While it might seem complex, creating a fake virus for pranks is quite simple if you follow the right steps and use the appropriate languages and commands to simulate error messages or pop-up windows. Of course, always act responsibly and make sure it's not malicious code!
What is a fake virus message in Notepad?
The main idea behind this prank is to simulate a threat on the victim's computer, making them believe their system is compromised , when in reality it's all a controlled illusion. No real files are modified or deleted; only error messages, warnings, or even the command prompt are displayed as if it were performing dangerous tasks.
The key is that the system suffers no damage whatsoever; the intention is to catch the user off guard by mimicking a genuine virus or system error, but without any real risk. Using Notepad and languages like VBScript or batch files (.bat), you can create pop-up windows, error sounds, and visual effects that will make the prank completely believable.
Tools needed to create your fake virus
- Notepad: The simplest and most universal Windows tool for writing and saving scripts.
- .vbs and .bat extensions: The most common languages for executing commands and displaying fake error messages.
- Optional: Custom icons to give a more realistic touch to the shortcut that victims expect to find.
In many cases, you will work primarily with VBScript and batch files , as both allow you to interact with the system by displaying windows, performing small simulations, or deceiving the user with very convincing alert messages.
Step by Step: How to Create a Fake Virus Message
- Open Notepad: Simply search for 'Notepad' in the start menu, or use the combination Windows + R and type 'notepad' to quickly open it.
- Enter the codeCopy and paste the script that simulates the fake virus. Here's a VBScript example that displays various warning messages and simulates dangerous processes, but is completely harmless:
Set WshShell = WScript.CreateObject("WScript.Shell") strName = wshShell.ExpandEnvironmentStrings("%USERNAME%") x=msgbox ("Crítico: Tu sistema está gravemente afectado por múltiples amenazas. Para abortar todos los procesos, pulsa 'Anular'. Para volver a escanear, pulsa 'Reintentar'. Para continuar con todos los procesos, pulsa 'Omitir'.", 2+16, "Virus encontrado por Windows Defender©") WScript.sleep 2000 msgbox "Fallo del sistema en %WINDIR%",48,ERROR WshShell.Run "cmd" WScript.sleep 200 wshshell.sendkeys "cls" ... (el código continúa y puede personalizarse) ... msgbox "Solo estaba bromeando - ¡No te asustes! :)"You can modify the messages or sounds to suit the victim's personality . Remember, the more personalized the message, the more believable the prank will be.
- Save the file with the .vbs extension: Choose the "Save As" option and select "All Files." Enter the name you prefer and end with .vbs (for example, fakevirus.vbs). Select the encoding ANSI to avoid compatibility errors.
- Create a custom shortcutRight-click on the desktop, choose "New," then "Shortcut." Find the .vbs file you saved and choose a catchy name. If you like, change the icon in the shortcut's properties to make it even more appealing.
- Test the joke before sending itIt's essential to make sure the fake virus behaves as you expect and doesn't generate any errors. Test the file on your own computer or, better yet, on a virtual machine to avoid any unnecessary scares.
What happens when the victim runs the fake virus?
When the friend or family member clicks the shortcut, they will be bombarded with warning messages, system errors, or commands that appear dangerous , such as file deletion or system cleanup. However, nothing is actually deleted or modified on the computer.
Some scripts even simulate the use of the command prompt ( cmd ), displaying phrases like "Erasing disk C," "Deleting users," or directory calls, accompanied by pauses and error sounds. The experience ends with a message revealing the prank, restoring calm... or provoking a laugh.
Tips to personalize and improve the joke
- Edit the content of the text: You can change messages, titles, or even message buttons to make them scarier, funnier, or more tailored to a specific situation.
- Add or remove featuresIf you want to make the joke shorter or more theatrical, you can delete lines of code or duplicate them so that the message appears multiple times.
- If you have experience, You can combine batch (.bat) and VBScript commands to create even more surprising effects, such as opening and closing windows, changing the color of the console, or making 'annoying' sounds.
Useful tips and commands for your .bat files
If you want to explore the possibilities of batch (.bat) files, here is a list of common commands:
- OFF: Hides commands, but displays output on the console.
- @ Echo: Displays custom text as output.
- color A: : Change the color of the console (e.g. green to give a 'hacker' look).
- pause: Suspends execution until any key is pressed.
- timeout /t : Adds a countdown before the next command.
- class: Clear the console screen.
- > null: Runs a command and hides the output.
Use these tricks to make the fake message more realistic and surprising.
Important warnings and good practices
- Do not use these scripts to harm other people's computers or data.. Its sole purpose should be entertainment and joking among friends.
- If the user gets scared, quickly explains that it's all a simulation and that the system is intact.
- Always test your code first in a controlled environment before sharing.
- To stop the fake virus, you can terminate the 'wscript.exe' process from the Task Manager (Ctrl+Alt+Del > Processes).
- Modifying code without knowing can lead to unexpected errors; always check each line before adding new features.
- Do not use the joke in the work environment or on computers containing sensitive information.Make sure the victim is open to these kinds of surprises.
How to make the error message imply realism
A very simple trick to make the prank even more impactful is to duplicate the line of code that displays the error message . This way, once the supposed 'victim' closes the first window, a second one will appear, then a third, or as many as you want. This creates the effect that the problem doesn't disappear and generates a greater element of surprise.
It is recommended not to overuse the number of pop-up windows to maintain the fun and prevent the joke from becoming annoying or frustrating.
Can you create a fake virus prank on any version of Windows?
Of course! Both VBScript and batch files work on most modern versions of Windows, from Windows XP through Windows 10 and 11. No additional software installation is required; you just need access to Notepad and permissions to run scripts. Just be sure to save the file correctly with the appropriate extension (.vbs or .bat) and select ANSI encoding to avoid problems with special characters.
Ideas to give realism and creativity to your surprise message
- Customize usernames using variables like %USERNAME%.
- Imitates known error messages (Windows Defender, disk cleanup, etc.)
- Use warning sounds and bright colors on the console.
- Change the shortcut icon to that of a regular app or mysterious folder.
- Add pauses and window movements to make the joke more theatrical.
The more details you tailor to the victim's profile, the more effective and memorable the result will be.
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.