Sunday 13 November 2016

Removing virus from USB drive without using any antivirus software’s in Windows

Removing virus from USB drive without using any antivirus software’s in Windows


To protect your pc from pen drive virus you can copy all the files using command prompt and format it.  But sometimes there is a chance for virus inside any folder in pen drive. So before copying the files it is better the look all the files in the pen drive and if virus found inside any folder you can delete it using command prompt.
  • Open Command Prompt and type the removable hard disk driver name. for example H:
  • “ATTRIB” is the best tool to check virus in any removable hard disk and also in flash drives
  • In the command prompt type  ”H: attrib”  and hit enter this will shows files and viruses in the pendrive. It is easy to identify virus in pendrive
  • Then type “attrib -s -h -r virus name” If the name of the virus is autorun.inf type ”attrib -s -h -r autorun.inf“ and hit enter this will makes the file as accessible in command prompt
  • If there is no more attributes in autorun.inf file you can delete it by using the command “del autorun.inf” Replace the autorun.inf file by your virus name
If you get any error as the file is using by some other application, Open task manager and stop that application.

Steps to copy files using command prompt:

After deleting the virus from the folder in removable hard disk now you can copy the folder to your local disk using command prompt.
Open command prompt and type the removable hard disk driver name. For example H:
Then type “copy H:\File or Folder name D:\”  (D: is the destination folder in which you want to copy the files)
For Example  H:\cybertwitt.JPG D:\ 
To copy all the files in a folder type the folder path in command prompt for example: H:\Folder name hit enter then type “*.*(space) D:” (D is destination folder)
You all done. Now the file is copied to your local drive without virus.

No comments:

Post a Comment