Remove Virus from USB using CMD (command prompt)


One of the ways by which your system can be effected by virus is through USB, so check the following steps to check if your usb has virus and remove it.

Step 1:
  1. After connecting your usb,open command prompt from start-->cmd  
  2. In the command prompt type the drive leter : and press enter [ex: d:]
  3. Now type dir and press enter
  4. List of files in your usb will be shown
Step 2:
  1. Now open another cmd window
  2. Type the drive letter,but now instead of dir  type  dir /w /a  and press enter
  3. Now files with all the attributes will be shown [even hidden files will be shown ,many virus files will be hidden]
  4. Now match the files with step 1
  5. Any suspicious file may be a virus 
  6. Some examples are
  • Autorun.inf
  • Ravmon.exe
  • New Folder.exe
  • svchost.exe
How to remove the virus:
  1. In cmd after typing the usb drive letter [ex d:]
  2. Type attrib -r -a -s -h *.* and press enter.
  3. This will remove the Read Only, Archive, System and hidden file attribute from all the files.
  4. Now just delete the files using the command del filename.
  5. Example del Ravmon.exe.
  6. Delete all the files that are suspicious.

Share this article :

8 comments:

  1. this my virus...cant kill.. -> vpbmunfsxe.<- (type VBS Script File)..help me..

    ReplyDelete
  2. yeah, facing same problem too =_=

    ReplyDelete
  3. same here.. format usb drive still same.

    ReplyDelete
  4. same here.. format usb drive still same.

    ReplyDelete
  5. i can't remove a write protection from my Sandisck flash


    ReplyDelete
  6. try typing this after dir..attrib /d /s -a -s -h -r
    just scan ur usb with an anti virus after that..

    ReplyDelete
  7. cant del autorun.Inf on CMD command how to fix it

    ReplyDelete
  8. cant del autorun.Inf on CMD command how to fix it

    ReplyDelete

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Free4uZione - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger