One day when I opened My Computer I saw a strange icon for drive D: instead of the usual icon.

How can I restore the original icon? Here is a screenshot:

Screenshot of drive icon

link|improve this question
1  
If you type in D:\autorun.inf into Start->Run, does anything come up? – Mehrdad Jul 8 '11 at 6:29
feedback

migrated from stackoverflow.com Jul 8 '11 at 6:39

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 4 down vote accepted
  1. Launch a Command Prompt with administrator privileges, and navigate to the root of drive D:
  2. Run the following:

    attrib -r -h -s autorun.inf
    del autorun.inf
    

This will most likely solve your problem.

link|improve this answer
how to run CMD with admin privileges? – imdadhusen Jul 8 '11 at 9:18
@imdadhusen seems there was a formatting problem in the answer. It should be . not . – Gareth Jul 8 '11 at 10:26
yep its attrib<space>-s<space>-h<space>*.*<space>/S<space>/D – Adeel Hasan Akbari Jul 9 '11 at 19:35
feedback

"right click -> properties" on D drive,
Under the "Customize" tab there is a area named "Folder pictures"
choose "Restore Default"

link|improve this answer
I have tried but still didn't get result! – imdadhusen Jul 8 '11 at 6:38
feedback

If the drive is external: After following the solution with Command Prompt above, reconnect the drive to make the icon restore.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.