Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I change file icons in Windows 7?

I don't want to use any tools for this purpose - I've tried some registry hacks but they didn't work.

share|improve this question

migrated from stackoverflow.com May 10 '11 at 21:18

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

1  
15 questions, 1 accepted answer. Not good. –  David Heffernan May 10 '11 at 19:29
add comment

1 Answer

The registry keys are under HKEY_CLASSES_ROOT. Your program will need Administrator permissions to be able to modify them.

Every file type registered will have an entry in HKEY_CLASSES_ROOT, for example .suo. The value of this key will be a more verbose file type, in my example VisualStudio.Launcher.suo. Go to that key and you'll find another key underneath it, DefaultIcon. The value of this key will be the name of the file containing the icon and an index to the proper icon within the file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.