Jump to content

How to associate icons for file types


Recommended Posts

Hi,

I know how to associate icons for file types using folder options.

I want to know the registry entries to associate icons for all the extentions using registry entries, so that i could associate my custom icons for .mp3 , .wma etc during RunonceEx. It might be more handy if there is an INF way to do that.

will anyone share the views? :)

thanks.

EDIT: If there is a way to change special folder's icons too, like Document & Setting... ProgramFiles etc.

Link to comment
Share on other sites


I've already read that thread of yours :) but there are no Filetypes icons in shell32.dll, explorer.exe or mydocs.dll. What if i want to have custom icon for mp3 file, if i install Winamp, the mp3 file's icon should come from winamp.exe, does it sound good to hack winamp.exe too and other applications of which icons i want changed? Well i dont even want to change file associations but only the icons of file extentions like we do with folder options. :)

Is there any registry or inf way to do that ? instead hacking the application exe to which our file is associated?

Ex: .jpg .mp3 .wma .pdf .doc .xls .etc

Link to comment
Share on other sites

[HKEY_CLASSES_ROOT\.mp3\DefaultIcon]

@="C:\\Windows\\Resources\\Icons\\mp3.ico"

or for .exe

[HKEY_CLASSES_ROOT\.mp3\DefaultIcon]

@="C:\\Windows\\Resources\\Icons\\myicons.exe,1"

would also be an example

this is just from memory so it should work, but check in registry first :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...