Viruses like autorun.inf virus will hide your Folders and create shortcuts for that folder to make you to execute the virus yourself while you opening the shortcut folder. So don’t open the shortcut folder when your pen drive or external drive was affected by this virus. Be careful.
Delete all shortcut files and unhide all the folders or files which are hidden by this virus.To unhide use this method.How to unhide folders or files which are hidden by virus?
Now you can prevent or protect your Pen drive or External Hard drive or Memory Card from autorun.inf virus by using this method.
Step 1: Open the My Computer.
Step 2: Open the drive (Pen drive, External Hard drive, Memory Card) that you want to protect or prevent it from autorun.inf virus.
Step 3: Open the command prompt by right click on empty place while holding the shift key and choose Open Command Window here. For XP user: Open the command prompt manually.
Step 4: Type “md \.X:autorun.infcon” where X is your Drive letter in the command prompt. Then press Enter, new folder will be created on your drive.
Step 5: Now “autorun.inf” folder cannot able to delete by you or Virus. So now your Drive is completely protected from virus.