Method One
- Open command line (CMD) and write the following:
del /a:rhs [driveletter]:autorun.inf
- Simply Replace [driveletter] with your drive. If the virus is on the D drive the commad will be
del /a:rhs D:autorun.inf
- Restart the computer & Done.
Second Method
Genreally when you refresh the windows explorer view a bounded virus process recreates this file. This file is attached to many events of windows explorer including OPEN, REFRESH, etc.
You must close opened explorer windows.
1. Open up a command prompt (i.e. cmd.exe) >> to load it go to Run, type cmd, enter.You must close opened explorer windows.
2. Now to remove virus’s attributes (in order to delete it type following line by line and execute them pressing enter.
F:
F:attrib -s -r -h *.*
If there are any malicious EXE files those are now visible so if unnecessary delete them too.
F:del autorun.inf
3. After finishing above, quickly remove the pendrive as soon as posible (just after executing del command).
4. Now your pen is without virus activation config. file. Now you can safely delete unnecessary EXE files on it.
4. Now your pen is without virus activation config. file. Now you can safely delete unnecessary EXE files on it.