• Lost File Type Icons in Windows Explorer

    Home » Forums » AskWoody support » Windows » Windows 7 » Questions: Windows 7 » Lost File Type Icons in Windows Explorer

    Author
    Topic
    #492467

    Hello Everyone,

    I keep losing the icons to two file types in Explorer, and only those two[/U], even with a fresh install of Windows 7. It takes a little time, but sooner or later they disappear. It’s always Internet Explorer icons first (the associated .mht files) soon followed by the Chrome icons (.htm, .html files). So it’s only those two, .mht and .htm.

    For complicated reasons I’d rather not go into, it’s important for me and my work to be able to see those file icons in Explorer at any time.

    I should also add the icons DO always appear in the Save/Save As windows, when I’m saving web pages to HD, as I do dozens of times every day (for work).

    File Associations & Icon Cache Rebuilds have been ruled out. Here is what my Explorer window looks like …

    35777-Windows-7-Explorer-Window

    So, is there any way to restore these two icons in Explorer mode? I’m comfortable doing manual registry changes provided I have clear direction.

    Thanks so much, in advance.
    ~~~

    Viewing 7 reply threads
    Author
    Replies
    • #1429540

      I have just spent some hours fixing icon problems with shortcuts so this may not be useful for you. Googling wrong icon windows 7 gets lots of hits. Some thoughts …

      1 Delete C:usersxxxxappdatalocal iconcache.db and reboot. This is the icon cache and it will be rebuilt on reboot. It is a hidden file.

      2 Your file associations may have gone wrong. Control panel > Default programs > Associate a file type with a specific program. Check what is associated with .mht, .htm and .html. Or r-click an .mht file > Open with > Choose default program > Browse … and make sure you get the correct .exe for the program you want to use to open it. Tick Always use this program for this file type.

      3 You cannot disassociate a program from a file type (say .xyz) but this sneaky trick does it. Create a file fred.txt on the desktop. Rename it fred.exe. Now associate .xyz with fred. It picks up Fred.exe’s icon. Now delete fred.exe. You should find that .xyz in not associated with anything (although it may take a while for the display to change).

      4 My problem was caused by making a copy of Notepad.exe and calling it Copy of Notepad.exe. I then set up a shortcut which called Copy of Notepad.exe to open a specific file. I gave the shortcut a unique icon. All sorts of problems then arose – whenever I opened a txt file, it got the unique icon! When I looked in Control panel > Default programs > Associate a file type with a specific program I had two Notepads, but no Copy of Notepad. I eventually deleted Fred and went round in circles for a while before eventually fixing it.

      5 W7 seems to get the icon which appears in the top left corner of tegh open window from somewhere; and the icon which appears in the system tray from somewhere else – I had them different.

    • #1429541

      D*mmit! It seems I have the identical problem – incorect icon for .htm and similar files. My icon is the same as yours.

      I have .htm associated with Firefox and it opens in Firefox when I click it. It seems to be related to Firefox because when I associate .htm with IE or another program, it gets the correct icon.

      But I then associated it with Notepad and it is now stuck with Notepad and I cannot change it back. r-click > properties > security and all the permissions are greyed out and cannot be changed. Also, whereas I used to have an “Opens with” and Change button on Properties, these have both disappeared.

      I need to look at it further …

      • #1429544

        D*mmit! It seems I have the identical problem – incorect icon for .htm and similar files. My icon is the same as yours.

        I have .htm associated with Firefox and it opens in Firefox when I click it. It seems to be related to Firefox because when I associate .htm with IE or another program, it gets the correct icon.

        But I then associated it with Notepad and it is now stuck with Notepad and I cannot change it back. r-click > properties > security and all the permissions are greyed out and cannot be changed. Also, whereas I used to have an “Opens with” and Change button on Properties, these have both disappeared.

        I need to look at it further …

        I think it’s interesting that the problem only involves files that are saved web pages.

    • #1429543

      I have just spent some hours fixing icon problems with shortcuts so this may not be useful for you. Googling wrong icon windows 7 gets lots of hits. Some thoughts …
      1 Delete C:usersxxxxappdatalocal iconcache.db and reboot. This is the icon cache and it will be rebuilt on reboot. It is a hidden file.
      2 Your file associations may have gone wrong. Control panel > Default programs > Associate a file type with a specific program. Check what is associated with .mht, .htm and .html. Or r-click an .mht file > Open with > Choose default program > Browse … and make sure you get the correct .exe for the program you want to use to open it. Tick Always use this program for this file type.
      3 You cannot disassociate a program from a file type (say .xyz) but this sneaky trick does it. Create a file fred.txt on the desktop. Rename it fred.exe. Now associate .xyz with fred. It picks up Fred.exe’s icon. Now delete fred.exe. You should find that .xyz in not associated with anything (although it may take a while for the display to change).
      4 My problem was caused by making a copy of Notepad.exe and calling it Copy of Notepad.exe. I then set up a shortcut which called Copy of Notepad.exe to open a specific file. I gave the shortcut a unique icon. All sorts of problems then arose – whenever I opened a txt file, it got the unique icon! When I looked in Control panel > Default programs > Associate a file type with a specific program I had two Notepads, but no Copy of Notepad. I eventually deleted Fred and went round in circles for a while before eventually fixing it.
      5 W7 seems to get the icon which appears in the top left corner of tegh open window from somewhere; and the icon which appears in the system tray from somewhere else – I had them different.

      Thanks, John. Appreciate it. Yeah, I tried those, and nothing worked.

      I suspect it’s some kind of shortcut problem, or something in the registry, but of course I don’t know that for sure.
      ~~~

    • #1429546

      It seems to be a Firefox problem for me. This Firefox post “Firefox icon won’t appear on html files” discusses it in detail but I haven’t had time to try it out

      http://forums.mozillazine.org/viewtopic.php?f=38&t=252032&st=0&sk=t&sd=a&start=0

      … and every time I opened it in IE, the next time I ran FF it said FF wasn’t the default browser. And when FF wasn’t (or was) the default, I could change the program as I had the Change Program button.

      Bizarre (but then nothing surprises me with Windows…)

    • #1429549

      I just changed the .htm association for Firefox, with the same result .. Firefox opens the file, etc., but the icon doesn’t show in Explorer.

      So with me, it’s the files that open with the browsers, in my case – IE, Firefox, and Chrome. All other icons appear just fine as they should. It’s only the icons of saved web pages (which I have thousands) that won’t show in Explorer.

      And as I said in the OP, it’s interesting that when I’m in the process of saving a webpage, all the icons (from both .mht and .htm (.html) file types and associated browsers that open them) show in the “Save As” Explorer window, just like they’re supposed to. It’s only when I go to Explorer, in normal Explorer mode, to browse my files that the icons don’t show.

      Somehow, the connection there is broken.
      ~~~

      • #1429568

        It’s only the icons of saved web pages (which I have thousands) that won’t show in Explorer.

        And as I said in the OP, it’s interesting that when I’m in the process of saving a webpage, all the icons (from both .mht and .htm (.html) file types and associated browsers that open them) show in the “Save As” Explorer window, just like they’re supposed to. It’s only when I go to Explorer, in normal Explorer mode, to browse my files that the icons don’t show.

        Somehow, the connection there is broken.
        ~~~

        After the fix above, everything is OK for me. htm and html files show the FF icon on the desktop and in Windows Explorer listings. When I save a file, Save As shows the FF icons on htm and html files.

    • #1429567

      This fixed it for me (from http://windowssecrets.com/forums/showthread//135115-Icons-for-Firefox-missing-in-Windows-Explorer)

      [INDENT]I found a fix for the problem. Something (possibly one of the recent installs) had added an Icon Handler for Firefox. In the registry I found registry key HKEY_CLASSES_ROOTFirefoxHTMLShellExIconHandler was set to {42042206-2D85-11D3-8CFF-005004838597}. I also found registry key HKEY_CURRENT_USERSoftwareClassesFirefoxHTMLDef aultIcon was set to %1.
      [/INDENT]

      In fact, my HKEY_CURRENT_USERSoftwareClassesFirefoxHTMLDef aultIcon was set to C:Program Files (x86)Mozilla Firefoxfirefox.exe,1

      [INDENT]Here is what I did to fix the problem:

      1. I deleted registry key HKEY_CLASSES_ROOTFirefoxHTMLShellExIconHandler (I completely deleted the key, not just set it to no value).[/INDENT]

      I deleted it

      [INDENT]2. I set registry key HKEY_CURRENT_USERSoftwareClassesFirefoxHTMLDef aultIcon to C:Program Files (x86)Mozilla Firefoxfirefox.exe,1[/INDENT]

      Mine was already set to that.

      [INDENT]3. I changed the file association from Firefox to Internet Explorer and then from Internet Explorer back to Firefox.

      Now all is functioning properly.
      [/INDENT]

      Mine too!

      Whether it survives a reboot is another question …

    • #1429570

      … and at some time, I gave Firefox all its defaults … Control Panel > Default Programs > Set Default Programs > choose FF > Choose defaults for this program > select all. I also set FF to default on the previous step.

    • #1429645

      It worked!!! The above fix worked for me, using the Chrome key instead of Firefox .. changing the 0 to 1. Didn’t have to do anything to the second key (HKEY CURRENT USER) for Chrome.

      There was no similar sequence for Internet Explorer. But I fooled around in both trees with the .mht values, and suddenly it worked. Sorry I can’t recall the exact fix, as I tried a number of them, just fishing. But I suspect that changing the .mht file association to Firefox and back to Internet Explorer may have done it alone, since the first time I did that, it worked.

      All survived the reboot as well.

      So thanks, John_Ha. You the man!!

      Here’s a picture of the handiwork…….

      35810-Windows-7-Explorer-Window-fixed
      ~~~

    Viewing 7 reply threads
    Reply To: Lost File Type Icons in Windows Explorer

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: