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.
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
Now, you will get the option command prompt in the context menu also.