Change icon for an associated file type

S

Skippybox

Hi,

I am trying to determine how to change the icon for a file type (say JPG),
after I associate it with a program.

Before doing so, when the extension is set to open with Windows Picture and
Fax Viewer, the "Advanced" button appears in Folder Options>File Types. This
gives you the "Edit File Type" dialog, allowing you to click on "Change
Icon".

However, after associating the extension with a particular program, the
"Advanced" button changes to a "Restore" button. Clicking on this button
reverts to the old association and restores the Advanced button. So, how can
I keep the association, without clicking "Restore", yet get the "Advanced"
button back to change the icon. Is it not possible? Why are the two
connected?

One method I have tried, is editing the "Open" Action, which changes the
association, but preserves the Advanced button so I can still edit the icon.
Would this be the only way, since it is difficult to undo? This seems like a
lot of work to make each association, just to change the icons. Many
programs will do the associating for you, but then you lose the ability to
change icon, because the Advance button is gone. I really don't want to
re-associate everything.

Thank you for your response.
 
J

ju.c

Use the Registry Editor instead, it much easier.

Find this key:

[HKEY_CLASSES_ROOT\.jpg]

and note it's default value. Go to it, for example:

[HKEY_CLASSES_ROOT\.jpg]
@="jpegfile"

go to:

[HKEY_CLASSES_ROOT\jpegfile\DefaultIcon]

and enter the path to an icon for the default value. No quotes!
If you point to an ico file end with just ...iconfile.ico
If you point to an exe or dll file then end with a comma and number ...exefile.exe,0


ju.c
 
S

Skippybox

Thanks, that works great!

ju.c said:
Use the Registry Editor instead, it much easier.

Find this key:

[HKEY_CLASSES_ROOT\.jpg]

and note it's default value. Go to it, for example:

[HKEY_CLASSES_ROOT\.jpg]
@="jpegfile"

go to:

[HKEY_CLASSES_ROOT\jpegfile\DefaultIcon]

and enter the path to an icon for the default value. No quotes!
If you point to an ico file end with just ...iconfile.ico
If you point to an exe or dll file then end with a comma and number ...exefile.exe,0


ju.c


Skippybox said:
Hi,

I am trying to determine how to change the icon for a file type (say JPG),
after I associate it with a program.

Before doing so, when the extension is set to open with Windows Picture and
Fax Viewer, the "Advanced" button appears in Folder Options>File Types. This
gives you the "Edit File Type" dialog, allowing you to click on "Change
Icon".

However, after associating the extension with a particular program, the
"Advanced" button changes to a "Restore" button. Clicking on this button
reverts to the old association and restores the Advanced button. So, how can
I keep the association, without clicking "Restore", yet get the "Advanced"
button back to change the icon. Is it not possible? Why are the two
connected?

One method I have tried, is editing the "Open" Action, which changes the
association, but preserves the Advanced button so I can still edit the icon.
Would this be the only way, since it is difficult to undo? This seems like a
lot of work to make each association, just to change the icons. Many
programs will do the associating for you, but then you lose the ability to
change icon, because the Advance button is gone. I really don't want to
re-associate everything.

Thank you for your response.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top