Where can I access Windows' registry and change the icon for a certain extension?
The icons is on:
ThanXCode:app.path
Printable View
Where can I access Windows' registry and change the icon for a certain extension?
The icons is on:
ThanXCode:app.path
They're here: HKEY_CLASSES_ROOT\.ext\DefaultIcon, where ext is the file extension.
However, some file types have a redirector to a different key, which might be something like ASM_auto_file, which would be under HKEY_CLASSES_ROOT\ASM_auto_file\DefaultIcon
The icon is stored as a reference to a file with resource capabilities (.ico, .dll, .exe). If it's a DLL or EXE, then the filename stored will be in the format "filename.dll,1", where 1 is the number of the icon, starting from 0 (the app's default icon).
For code to access the registry, go here: http://www.parksie.uklinux.net/registry.zip
I meant during runtime, how can I change the default icon to an extension I MADE, NOT AN EXISTING EXT.
ThanX anyway
Simply make a new key for it, in the same style as the others.
And how am I going to do that?