One of the ways by which Computers get affected by viruses is through USB Pen drives. Anti viruses are unable to detect them and even if they do, in most cases they are unable to delete the virus. Following are the precautions you can take when plugging USB Drive on your Computer.
Whenever you plug a USB drive in your system (which you think is infected by virus), do not open it – Do not click ‘OK’ !
click on ‘Cancel’. Now open Command Prompt by typing ‘cmd‘ in run box.
Type dir /w/a and press enter.
Above command will display list of files in pen drive. Check in the list if the files are not
* New Folder.exe
* or any other exe file which may be suspicious.
If any of the above files are present in the list, then your USB drive is infected. To remove these files, type the following command in command prompt
attrib -r -a -s -h *.* and press enter.
This will remove from files Read Only, Archive, System and Hidden attributes .
The files which you will now be looking on are the junk files (viruses) and can be deleted using del command. Delete all those files which you find suspicious. To be on a safer side, just scan again your USB Pen drive using a anti virus to check whether it is free of virus or not.