Friday, December 19, 2008

How to Prevent/Protect your Pendrives and Harddisk's from autorun.inf virus

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.
  1. Use the command md autorun.inf on all of your drives.
  2. 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.
  3. You should use the command md autorun.inf on all of your drives including your pendrive.
  4. Now reboot your system.
  5. 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.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="@%SystemRoot%\\system32\\shell32.dll,-22022"

[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@=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.

Labels: , ,

1 Comments:

Blogger RAN said...

Nice way to protect pen drives from autorun.inf... Thank you...

March 2, 2009 at 1:12 PM  

Post a Comment

Its your Turn now. Post Your Opinions and Doubts here. All comments are moderated. I will respond to your comments shortly. So, Do check back :) And This is a Do Follow Blog.

Subscribe to Post Comments [Atom]

<< Home