July 27, 2013

How to remove virus using cmd ( command prompt ) ?

By on 10:00 PM

   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  ?
How to remove autorun virus from Hard disk using command prompt?
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.

  • Note: 

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

    You may like these too : 
    <<< How to share a file from one laptop to another. >>>

    About Thomas Androws

    Thomas Androws is a 21 year old young guy Founder of waftr, who is blessed with the art of Blogging, He love to Blog day in and day out. He owns Funny2photos.com


    1. A virus I ran into modified the registry so executing an exe file would raise an exception by first trying to run some non-existent patch. Nothing on the computer worked at all, including regedit.

      I created registry snippet export from a like operating system that replaced the exe entry in the registry, copied it to a file using edit from the dos prompt and saved it to the Desktop folder using it's 8 character truncated all cap abbreviation and the .reg extension. This way, when I rebooted the computer there was a .reg file on the desktop (Windows explorer also couldn't be opened) that fixed the computer when I double-clicked it. Totally worked!

    2. your cmd code for removing autorun.inf from the computer hard disk does not work at all.

    3. I know this if off topic but I'm looking into starting my own blog and was
      curious what all is needed to get setup? I'm assuming having
      a blog like yours would cost a pretty penny?
      I'm not very web savvy so I'm not 100% positive.
      Any tips or advice would be greatly appreciated.
      Many thanks

      Also visit my blog post; facebook smileys

    4. How to choose pen drive directory?

      1. Try this : http://www.waftr.com/2013/11/open-cmd-any-particular-location.html , quite useful :)

    5. Thank you, this was quite helpful

    6. I tried it dut i am gettin that the process cant be completed becz its used by some other process.so i cant delete autorun and link virus...what mst i do now?

      1. Unplug your drive, plug again and make a try

      2. not working for my pendrive.why,can help me?


      3. H:\>del *.Ink
        Could Not Find H:\*.Ink

        H:\>attrib -h-r-s\s\d H:\*.*
        Invalid switch - -h-r-s\s\d

        H:\>del *.Ink
        Could Not Find H:\*.Ink

        H:\>attrib -h-r-s/s/d H:\*.*
        Invalid switch - -h-r-s/s/d

        H:\>attrib -h-r-s/s/d H:\*.*
        Invalid switch - -h-r-s/s/d


    7. Access denied - F:\$RECYCLE.BIN\S-1-5-21-711698431-329572966-824906452-1005
      Access denied - F:\System Volume Information
      it is showing this error

      1. you are removing virus for pendrive or hard disk?

    8. Magnificent website. A lot of useful info here. I'm sending it to a few pals ans additionally sharing in delicious.
      And obviously, thanks for your sweat!

      My site :: How to win the Lottery

    9. this is working for me thank

    10. its really good

    11. Shit...i have done all the steps mentioned by u to remove shortcut virus from pd nd last step - format that pd...bt now my data is not recovering...:( what should i do? image files not opening and everytym i copy data in pd and it is not opening...:( now help me out