If drives don’t open on double click

By | July 26th, 2009



Sometimes you encounter this problem, mostly due to some virus, that your drive doesn’t open when you double click it. This is a common problem with USB flash Drives. Even when you remove the viruses the problem still remains. The problem occurs when the ‘autorun.inf‘ file gets corrupted! Most of times, only the autorun of the flash drives gets corrupted and sometimes of all your local drives too. This file tells Windows how to deal open the presentation and treat the contents of the CD, flash drive, and local drives.

The simplest and easy way to solve this problem is to delete all the autorun.inf files from all the drives. Trust me, this is the best and quick solution. You don’t need to worry about the deletion as the system will regenerate them automatically when you restart the windows. (even if it doesn’t, the system will function properly)

Solution: Copy and paste the following code in a notepad and save it as “anyname.bat” You can give it any name. After saving, run the .bat file and it will delete the autorun.inf of all drives for you.


cd\
c:
attrib -r -s -h autorun.inf
del autorun.inf
d:
attrib -r -s -h autorun.inf
del autorun.inf
e:
attrib -r -s -h autorun.inf
del autorun.inf
f:
attrib -r -s -h autorun.inf
del autorun.inf
g:
attrib -r -s -h autorun.inf
del autorun.inf
h:
attrib -r -s -h autorun.inf
del autorun.inf
i:
attrib -r -s -h autorun.inf
del autorun.inf
j:
attrib -r -s -h autorun.inf
del autorun.inf
k:
attrib -r -s -h autorun.inf
del autorun.inf
l:
attrib -r -s -h autorun.inf
del autorun.inf
m:
attrib -r -s -h autorun.inf
del autorun.inf
n:
attrib -r -s -h autorun.inf
del autorun.inf
o:
attrib -r -s -h autorun.inf
del autorun.inf
p:
attrib -r -s -h autorun.inf
del autorun.inf
q:
attrib -r -s -h autorun.inf
del autorun.inf
r:
attrib -r -s -h autorun.inf
del autorun.inf
s:
attrib -r -s -h autorun.inf
del autorun.inf
t:
attrib -r -s -h autorun.inf
del autorun.inf
u:
attrib -r -s -h autorun.inf
del autorun.inf
v:
attrib -r -s -h autorun.inf
del autorun.inf
w:
attrib -r -s -h autorun.inf
del autorun.inf
x:
attrib -r -s -h autorun.inf
del autorun.inf
y:
attrib -r -s -h autorun.inf
del autorun.inf
z:
attrib -r -s -h autorun.inf
del autorun.inf

Or, just download this .bat file that I have created for you and execute it!

Download: Remove Autorun.bat (When opened, save it as Remove Autorun.bat)




  • thetnaing

    hi Jawad Masood,
    your bat file have been run but my drive is not open double click now. you can give me to solve other program for this problem please.

  • thetnaing

    hi Jawad Masood,
    your bat file have been run but my drive is not open double click now. you can give me to solve other program for this problem please.

  • Pingback: How to Heal the Invisible Folders in your Flash Drive | Hardware Insight

  • Salmonella

    not worked on my pc