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 :


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

  2. yeah, facing same problem too =_=

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

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

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

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

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

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

  9. wew cannot delete here also autorun.inf

  10. Really helpful

  11. These tips helped me a lot. Thanks DUD

  12. have you tried KrojamSoft FilesSearch? it can help

  13. I can't remove drive.bat and all virus files that have .lnk in my flash drive.....


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