Remove Virus from Computer or USB Drive by Command Prompt
First click the “
Start” button and go to “
Run“. You can also press “
Windows+R“. Type “
cmd” there.
Type the following commands in the Command Prompt
- Type “:” in the command prompt and hit “Enter“. (“Drive_name” is where the problem occurs, it may be any USB drive)
- Type “attrib” 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“)
- 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 ” in the Command Prompt and hit “Enter“. (As for example del autorun.inf)
Now your computer is virus free. Enjoy! Feel free to share your experience with us.
No comments:
Post a Comment