Tuesday, November 6, 2012

How To Remove Virus From Pendrive Using Cmd

First click the “Start” button and go to “Run“. You can also press “Windows+R“. Type “cmd” there. Otherwise, you also can click on "Command Prompt" if it's there. 




Type the following commands in the Command Prompt

-Type "<Drive_name>" in the command prompt and hit "Enter". (This shows the files that are      
  present in the currently working directory. You can also use the command “dir/w/o/a/p“). You 
  can also type "attrib"

-If there are any file named autorun.inf then go for next steps else the drive is not affected with 
 any autorun.inf file.

-Type “attrib -h -r -s -a *.* ” then hit “Enter“.  (This command removes the Hidden, Read Only, 
  System and Archive attributes over any file)

-After unhiding and removing attributes you can see the files.  So you can delete the file now.

-Type “del <filename>” in the Command Prompt and hit “Enter“. (As for example del autorun.inf)




Now your pendrive is free from virus. Enjoy ! :D

No comments:

Post a Comment