I recently created an article about creating an autorun.inf FOLDER on your USB drive’s root directory to prevent viruses from creating its own malicious autorun.inf FILE on your USB drive.

Unfortunately, once your computer is infected, it’s quite difficult to create the folder. If you have successfully deleted the infected autorun.inf file, the malware would simply recreate that file immediately before you are able to create the folder. This prevents you from creating the autorun.inf folder giving you an “A subdirectory or file autorun.inf already exists” message.

The process of deleting the file and creating the folder must be done as quickly as possible. But for some who can’t do this quickly, you’ll need a batch file. I have created a simple batch file called “mkautorn.bat” to do this for you. Simply download the file and then run it from your USB drive’s root folder. It will delete the existing autorun.inf file and replace it with the folder. It also creates a CON folder inside the folder.

Download mkautorn.bat here.


Tell a Friend

You should also read:

  1. Prevent viruses from creating an autorun.inf file on your USB flash drives
  2. Prevent viruses from deleting the autorun.inf folder created on your USB flash drive
  3. Prevent autorun.inf from being executed when opening any USB drive
  4. Disabling Autorun.inf to avoid USB flash drive viruses
  5. Chat privately with social network profiles, blog, or website visitors through Yahoo! Messenger by creating a Pingbox