File Icons in Windows XP

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

File Icons in Windows XP

Post 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).
Only Human
AR

Re:File Icons in Windows XP

Post 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.
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:File Icons in Windows XP

Post 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?
Only Human
AR

Re:File Icons in Windows XP

Post 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.
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:File Icons in Windows XP

Post 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.
Only Human
AR

Re:File Icons in Windows XP

Post 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
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:File Icons in Windows XP

Post 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???
Only Human
Post Reply