Almost all of the viruses which reside in flash drives use “Autorun.inf” to execute the EXE file.Whenever u try to delete this file, it gives an error saying this file cant be deleted coz its in use...Now the question is how to remove the autorun.inf file along with the viruses.
A) Remove these files manually using DOS Command Prompt:-
Go to Start->Run>Type “cmd“ [Without Quotes]
Then use the following commands
X: Where X is your flashdrive
attrib -s -h -r autorun.inf Changing the attributes of the file
del autorun.inf Deleting the fileNOTE:1. Here, -s -h ,-r means we are removing the attributes system file, hidden, read only resp.(if any) so that it can be deleted.2. Hold 'shift' while inserting the flash drive for 10-15 sec to disable autorun temporarily.
Go to Start->Run>Type “cmd“ [Without Quotes]
Then use the following commands
X: Where X is your flashdrive
attrib -s -h -r autorun.inf Changing the attributes of the file
del autorun.inf Deleting the fileNOTE:1. Here, -s -h ,-r means we are removing the attributes system file, hidden, read only resp.(if any) so that it can be deleted.2. Hold 'shift' while inserting the flash drive for 10-15 sec to disable autorun temporarily.
B)Using Smart-Antivirus :
I found a small piece of software which basically runs the same commands at the back end but performs it with more accuracy and more easiness, just with one click of your mouse. Its called “Smart-Anti-Virus“. Well tell you the truth its not an anti-virus basically but its a small handy program made in visual basic to automate all the DOS Commands i explained to you earlier.
It can perform the following actions ,in case viruses have affected these functions
- Enable Run
- Enable registry Editor
- Enable Command Prompt
- Enable Folder Options
- Disable Autoplay on all drives
- Restore all folder option settings
CLICK