Technically Entertaining with Internet, Windows, Android and Social Networks

Remove Virus and other Malware from PC using cmd [Quick Steps]

How to Remove Any Virus?

  Messing up with some virus ? Though your antivirus software removes virus and problem persists, searching google for the removal and you are into a perfect site for a solution. Here are perfect steps to remove 1. Autorun Virus, 2. Shortcut Virus, 3. Empty Folder Virus using CMD (Command Prompt)

Find the Type of the virus in your PC and follow the steps for the respective Virus,

What is Malware?

Malwares are the Malicious Softwares used to make unwanted actions in your PC, Virus, worms, Spywares are some kind of Malwares.

1. Autorun virus (autorun.inf):


            Autorun Virus Exploits into the Windows OS whenever an External device containing Autorun Virus is pluged in to Windows PC and Autorun is Performed, Then the Autorun.inf will be executed and replicates copies of this Autorun.inf file and .exe files too. This creates a serious mess with files, Follow the steps beow to remove this autorun virus from PC using CMD.

Steps to Remove Autorun Virus :

  • Press ( Start or winkey ) -> Run -> cmd.
  • If you are at the root directory ( C drive ) then do the following, else give cd.. and come to the root C:> and do the following. 
  • Type in ( attrib -h -r -s autorun.inf ), without brackets and press Enter.
  • Type ( del autorun.inf ), without brackets and press Enter.
  • Follow this for all other drives. 

2. Shortcut virus:

These Shortcut viruses are those which converts all your data inside your pen drive or Hard disk to shortcuts, and which are recoverable.

Steps to Remove Shortcut Virus : 

  • Go to Start -> Run -> cmd.
  • Go to your pen drive directory.
  • Type this command: del *.lnk and press Enter.
  • Type attrib -h -r -s /s /d e:*.*
  • And then press a gentle Enter.
          How to remove shortcut virus in Pen drives in Windows ?

Recover your files from Shortcut Virus: ( 2nd Method)

     You can recover your files through Winrar.

  •  Open WINRAR Application.
  •  Navigate to your Pendrive location or PC Folder location.
  •  Copy Files and Paste where you want.
  •  Format your Pendrive. 

3. Empty Folder virus:

   Got some Files in your pen drive but they are empty! Because of the virus in your pendrive malfunctions your drive. How to remove this empty folder virus and recover files?
Steps to Remove Empty Folder Virus : 
  • Start -> Run -> cmd.
  • Type this command: attrib -h -r -s /s /d x:*.
  • Here the letter “x” should be replaced with the drive alphabet of your pendrive that you have inserted into the computer.
  • If your pendrive shows the drive alphabet as “J“, then type  this command: attrib -h -r -s /s /d j:*.
  • And then press a gentle Enter.

4. Don’t know what the Virus is!!

If you can’t find the type of the Virus, you can follow these Steps to recover your Files.

  1. Turn ON Firewall
  2. Just Uninstall the Softwares that you have installed when your PC is normal.
  3. Run a BOOT time scan using Avast Antivirus.
  4. Run Microsoft Safety Scanner


           After performing the following steps,  Do a restart!
Similar posts
  • How to Enable / Disable USB ports in Windows 7 Block or Unblock USB Ports in Windows When you Plugin a Pen drive, Your Pen drive had no response in PC or Pen drive not detected, then This post helps you to enable the USB ports in Windows Xp, Windows 7, 8 and 10 Operating System of your computer, Even when control panel is blocked. Read also: Windows [...]
  • The Evolution of computer Explained in Infographics Visual History of Computing Computers! What are Computers? What they do? You can answer this in a minute but What would be People’s reaction some 50 years back? Here the History of Computer Explained Visually by IT support Providers Ankita. What’s in this Infograph? Here you can see Computers in Timeline, Going back from 2015 to [...]
  • How to screenshot on windows [Shortcut Keys and Tools] Capture Screen on Windows XP, 7, 8 and 10 Computers Everybody would have come across the necessity to Print their Computer Screen Once in their life time, Hope this is your turn. There are different methods to Print a Screen in Full screen, or a Window capture or even a small Part of the screen. 1. Screenshot [...]
  • How to recover deleted files and Photos from SD card Recover Deleted files Form SD Card:         When I made a file transfer from my SD card to the computer, I lost all my photos and videos from the SD memory card, Normally When a file is deleted by accident or manual, All those files won’t get erased, Some will be found un-deleted [...]
  • Hack Facebook Account without password Step by Step 2016 How to Hack Facebook Account online Without Any Software  Hello Everyone, This Post tells you how to Hack your friends or someones Facebook account (2016) in a simple way.  You just need to know some of the friends of the Facebook account you need to hack. Follow the following steps to Hack a Facebook account: [...]
  • Anonymous

    it said access denied, what to do?

  • Anonymous

    thnx …

  • Anonymous


  • Anonymous

    it worked for me thnx but after doing this in folder options in view option both radio butttons are enabled.i.e for “show” and “do not show hidden files radio buttons”.can any one help me?

  • Anonymous

    I ran cmd to remove shortcut virus on drive D but when i typed the drive it said Access is denied. What can i do?

  • kristoffer_dead

    hello, thank you for helping us. but i’m having trouble with mine.
    when i try your instruction on “How to remove Shortcut virus” and done typing “del *.lnk” it answers “the request could not be performed because of an I/O device error.”
    please help me with this :(

  • Anonymous

    tnx. it works for me.

  • Anonymous

    shortcut virus works…thanks!!!!

Global Rank of

Blog Archive