Page 1 of 1
File Icons in Windows XP
Posted: Wed Jul 20, 2005 3:32 am
by Neo
I want to change the icon of the .c files to the icons that are displayed for the .php files (SCiTE editor icon) but haven't been able to do that even though all my .c files do open in SCiTE.
So I was wondering if I could find where the blazes this SCiTE filetype icon was located I could change the .c file icons.
However I don't know the registry keys that do this and didn't want to mess with it (un-necessarily at least).
Re:File Icons in Windows XP
Posted: Wed Jul 20, 2005 3:40 am
by AR
In a Windows Explorer, Tools>Folder Options, change to "File Types." Find "C" in the list then click Advanced at the bottom then "Change Icon" browse to the EXE and select the icon from the list.
Re:File Icons in Windows XP
Posted: Wed Jul 20, 2005 3:58 am
by Neo
I can't find that icon anywhere thats why I need to know if I can find where it is with some registry key or something?
Re:File Icons in Windows XP
Posted: Wed Jul 20, 2005 4:01 am
by AR
Icons are either stored as ICO files or are embedded in EXEs/DLLs via resources. If you have something set to the correct icon (ie. the PHP one or whatever) then you can see where it's getting its icon from and do it that way.
Re:File Icons in Windows XP
Posted: Wed Jul 20, 2005 4:10 am
by Neo
I can't see from where it is getting that icon because the Advanced button changes to a Restore button for that file type.
Re:File Icons in Windows XP
Posted: Wed Jul 20, 2005 4:23 am
by AR
That's one of the many annoying "features" in Windows (change the program using the button above "Advanced" then advanced is locked out), you can get it out of the registry if you want
HKEY_CLASSES_ROOT\.php (See what "(Default)" is)
HKEY_CLASSES_ROOT\XYZ\DefaultIcon (See "(Default)")
The number after the comma at the end (if present) indicates the sub-icon if there is more than 1 in the binary
Re:File Icons in Windows XP
Posted: Thu Jul 21, 2005 12:20 am
by Neo
AR wrote:
That's one of the many annoying "features" in Windows (change the program using the button above "Advanced" then advanced is locked out), you can get it out of the registry if you want
HKEY_CLASSES_ROOT\.php (See what "(Default)" is)
That showed the value "php_auto_file"
AR wrote:
HKEY_CLASSES_ROOT\XYZ\DefaultIcon (See "(Default)")
The number after the comma at the end (if present) indicates the sub-icon if there is more than 1 in the binary
So i then went to HKEY_CLASSES_ROOT\php_auto_file
but couldn't find any DefaultIcon there???