• Donate
    TheWindowsForum.com needs donations to stay online!
    Love TheWindowsForum.com? Then help keep it alive by sending a donation!

How to Protect your Pendrives from autorun.inf virus

WELCOME TO THEWINDOWSFORUM COMMUNITY!

Our community has more than 63,000 registered members, and we'd love to have you as a member. Join us and take part in our unbiased discussions among people of all different backgrounds about Windows OS, Software, Hardware and more.

Sep 13, 2010
134
3
These day’s it is normal to get affected by the autorun virus when we take our pendrives outside and plug into a another system. Guys, here is a way that can prevent your Pendrives and Hard disk’s from being affected by the autorun.inf virus. Actually this trick will fool the autorun virus ie it will not allow the autorun virus to create the file named autorun.inf in the root directory of drives. If you want to use this trick make sure the pendrives and hard drives are free from the autorun virus because this trick is not to remove the virus if it is there but to prevent the drive from being affected by the virus in the future.
  • Use the command md autorun.inf on all of your drives.
  • This will create a folder named autorun.inf on the specified drive.So when the virus comes your system will prevent it from being regenerated as it will not allow two files by the same name in one place.
  • You should use the command md autorun.inf on all of your drives including your pendrive.
  • Now reboot your system.
  • Done!

If you want to get the command prompt option in right click menu just copy the following code to notepad and save it as command prompt here.reg.
Code:
<i>
</i>Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryshellcmd]
@=”@%SystemRoot%\system32\shell32.dll,-22022″

[HKEY_CLASSES_ROOTDirectoryshellcmdcommand]
@=hex(2):63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,6b,00,20,00,63,
00,64,00,20,00,22,00,25,00,4c,00,22,00,00,00
Now, you will get the option command prompt in the context menu also.
thanksifuluike.png
 
I don't this is effective trick my Dear, insist of folder with autorun.inf, I should try to create file with autorun.inf, because its is file which copies itself on pendrive and then to computer harddrive.

Other option which i am using is install USB Security 6.0 version, it scan usb flash drive or pendrive as soon as its pluged in. and don't requires updates
 
Back