3

Windows (at least XP and Vista, I haven't tried 7) refuses to honor my setting of the icon to show for html files. It insist in showing the paper sheet with the IE logo on it.

On XP I changed the icon through Folder options > File Types and for Vista I used FileTypesMan. But it does not work at all.

How can I do this?

GetFree
  • 3,230

4 Answers4

2

The values for icons are located in registry.

Go to RUN and type regedit

Go to HKEY_CLASSES_ROOT\.html

Then check the default. For example I have chromium browser So my default key is ChromiumHTM.

Go to the name of key in default:

HKEY_CLASSES_ROOT\{YOUR DEFAULT BROWSER KEY}\DefaultIcon

Example:

HKEY_CLASSES_ROOT\ChromiumHTM\DefaultIcon

Change the default value for that key to desired icon. Restart explorer.exe and your icon is changed.

Carl B
  • 6,660
1

An application could have installed an Icon Handler to provide a custom icon depending on file contents. For example, Microsoft Office installs icon handler to display custom icons for HTML files created in Word or Excel.

If there's an Icon Handler, Windows wouldn't use icon from DefaultIcon.

So try to remove the key:

HKEY_CLASSES_ROOT\htmlfile\shellex\IconHandler

Then Explorer will use icon specified in DefaultIcon:

HKEY_CLASSES_ROOT\htmlfile\DefaultIcon

There's no need to restart Explorer. If the icon does not change immediately, then restart Explorer.


Otherwise grvanchal provided steps to change the icon.

0

I can suggest you Other way for using Different Icon for your HTML file. Its totally different way but It could give you the Result you want....

Right click on Desktop >> New >> Shortcut And Choose your File. Then You can Change Icon of that Shortcut by Right click on it >> Properties >> Change Icon. Then you can Move That Shortcut file anywhere you want to

-1

A solution from link

Right click Desktop, go to Properties>Appearance
Click "Advanced", choose "Icon" and change size to something other than it's current size.
Press "OK" to confirm changes in all relevant dialogue windows.
When the icons have changed, restore the size to its original value.

This should force a redraw of all icons, clearing the old images.

washbow
  • 564
  • 2
  • 18