- Web And FuTuRe

How to remove virus using cmd ( command prompt ) ?

   Hello friend 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’s a trick to remove all your viruses. Follow the steps given below to remove viruses using cmd ( command prompt ) .
How to remove autorun virus using cmd  ?Steps : 
  • 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. 
How to remove Shortcut virus using cmd  ?
  These Shortcut viruses are those which converts all your data inside your pen drive or Hard disk to shortcuts, and which are recoverable.

 Just follow the below given steps to remove shortcut virus from pen drive and recover back your files.

  • 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 :

     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. 
How to remove empty Folder virus using cmd  ?
  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? Follow the steps given below.


  • 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.


          Do a restart, and before that don’t open any drives after performing the following steps.  


  1. Anonymous Anonymous
    September 15, 2014    

    it said access denied, what to do?

  2. Anonymous Anonymous
    September 3, 2014    

    thnx …

  3. Anonymous Anonymous
    August 25, 2014    


  4. Anonymous Anonymous
    August 25, 2014    

    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?

  5. Anonymous Anonymous
    August 20, 2014    

    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?

  6. August 12, 2014    

    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 :(

  7. Anonymous Anonymous
    July 12, 2014    

    tnx. it works for me.

  8. Anonymous Anonymous
    June 29, 2014    

    shortcut virus works…thanks!!!!

Get Latest Updates from WAFTR.COM

Like Us On Facebook

Sign up for our Newsletter
  • Tech NEWS
  • Social Media Tricks
  • Computer and mobile Tips

Enter your email and stay on top of things,

Skip to toolbar