Your flash drive doesn’t open when you double-click on the “drive icon” in Windows Explorer, frustrating isn’t it. Most of us have experienced/experience this problem with our flash drives. Thanks to some of the generous Virus and Trojans on our system, which we “inculcate” into our drives from other systems.
This one became a frequent problem and I had to do something to get rid of it. So here’s a “fix / workaround”. You need to “clean” the flash drive first and cleaning the drive is just half the thing. Because the double click actions are stored in a file inside your flash drive named “autorun.inf”. Now this file is generally not visible, not even if you have your show hidden files setting is enabled. The reason is that it is a system file.
This file will contain the root entries, of what files are to be executed when a double click on the flash drive icon is performed. A normal virus scan doesn’t remove these entries from the autorun file, as applications, under normal conditions, do not have the permission to interact or edit files with system attribute.
Plug in your flash drive. Open the command prompt and change directory to be in the root directory of your flash drive. Now type the following command.
attrib –s –h autorun.inf
Make sure you are in the root/main directory of your flash drive. Now after this command executes. The autorun.inf file should be visible. The contents should be somewhat similar to the one shown below.
“The above command governs what the default double click action will be do.”
The following entries are the modified right click entries. These right click entries were hacked to run different Trojan executables.
Delete all the lines except the first [autorun]. And save the file. Go to the command prompt again and type the following command:
attrib +h +s autorun.inf.
This should help you solve the double click-to-open issues of your flash drive.
And you can also find out where the Trojan executables are residing. For example in the above case the executables can be found inside Recycler folder, again another hidden folder.