Many .htm files display MS-Word icon

S

Stan Brown

Windows XP Pro SP2, MS Office 2003
Default Web browser is Mozilla, not MSIE

In a folder with a lot of .HTM files, a few of them show the Mozilla
icon but most show the MS-Word icon. "Folder Options" -> "File
Types" shows that Mozilla is associated with .HTM and .HTML files,
and when I double-click on one it does correctly open in Mozilla.

How can I correct the icon display, and does anyone have a clue what
caused the problem? In "File Types" I clicked "Advanced" and
re-selected the proper icon file, but even when I terminated and
re-started the Explorer process it still showed the wrong icons for
the majority of .HTM files.
 
S

Stan Brown

Windows XP Pro SP2, MS Office 2003
Default Web browser is Mozilla, not MSIE

In a folder with a lot of .HTM files, a few of them show the Mozilla
icon but most show the MS-Word icon. "Folder Options" -> "File
Types" shows that Mozilla is associated with .HTM and .HTML files,
and when I double-click on one it does correctly open in Mozilla.

How can I correct the icon display, and does anyone have a clue what
caused the problem? In "File Types" I clicked "Advanced" and
re-selected the proper icon file, but even when I terminated and
re-started the Explorer process it still showed the wrong icons for
the majority of .HTM files.

I also tried changing display resolution to force a refresh of
ICONCACHE.DB, then manually deleting ICONCACHE.DB (all copies) and
rebooting. It made no difference.
 
K

kurttrail

Stan said:
I also tried changing display resolution to force a refresh of
ICONCACHE.DB, then manually deleting ICONCACHE.DB (all copies) and
rebooting. It made no difference.

Sounds like the files were generated with Word.

Open up one of the files in Notepad. Does it look like below?

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:blush:="urn:schemas-microsoft-com:blush:ffice:blush:ffice"
xmlns:w="urn:schemas-microsoft-com:blush:ffice:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List
href="{TITLE}_files/filelist.xml">
<title>{TITLE}</title>

If so, then edit it to look something like this:

<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<title>TITLE</title>

Then if you have this stuff below that you can just delete:

<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author></o:Author>
<o:LastAuthor></o:LastAuthor>
<o:Revision></o:Revision>
<o:TotalTime></o:TotalTime>
<o:Created></o:Created>
<o:LastSaved></o:LastSaved>
<o:pages></o:pages>
<o:Words></o:Words>
<o:Characters></o:Characters>
<o:Company></o:Company>
<o:Lines></o:Lines>
<o:paragraphs></o:paragraphs>
<o:CharactersWithSpaces></o:CharactersWithSpaces>
<o:Version></o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DontDisplayPageBoundaries/>
<w:SpellingState></w:SpellingState>
<w:GrammarState></w:GrammarState>
<w:punctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid></w:SaveIfXMLInvalid>
<w:IgnoreMixedContent></w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText></w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel></w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->

--
Peace!
Kurt
Self-anointed Moderator
microscum.pubic.windowsexp.gonorrhea
http://microscum.com/mscommunity
"Trustworthy Computing" is only another example of an Oxymoron!
"Produkt-Aktivierung macht frei"
 
K

kurttrail

kurttrail said:
Stan said:
I also tried changing display resolution to force a refresh of
ICONCACHE.DB, then manually deleting ICONCACHE.DB (all copies) and
rebooting. It made no difference.

Sounds like the files were generated with Word.

Open up one of the files in Notepad. Does it look like below?

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:blush:="urn:schemas-microsoft-com:blush:ffice:blush:ffice"
xmlns:w="urn:schemas-microsoft-com:blush:ffice:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html;
charset=windows-1252"> <meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List
href="{TITLE}_files/filelist.xml">
<title>{TITLE}</title>

If so, then edit it to look something like this:

<html>

<head>
<meta http-equiv=Content-Type content="text/html;
charset=windows-1252"> <title>TITLE</title>

Then if you have this stuff below that you can just delete:

<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author></o:Author>
<o:LastAuthor></o:LastAuthor>
<o:Revision></o:Revision>
<o:TotalTime></o:TotalTime>
<o:Created></o:Created>
<o:LastSaved></o:LastSaved>
<o:pages></o:pages>
<o:Words></o:Words>
<o:Characters></o:Characters>
<o:Company></o:Company>
<o:Lines></o:Lines>
<o:paragraphs></o:paragraphs>
<o:CharactersWithSpaces></o:CharactersWithSpaces>
<o:Version></o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DontDisplayPageBoundaries/>
<w:SpellingState></w:SpellingState>
<w:GrammarState></w:GrammarState>
<w:punctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid></w:SaveIfXMLInvalid>
<w:IgnoreMixedContent></w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText></w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel></w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->


This might speed things up for you, if this is your problem.

http://www.microsoft.com/downloads/...EE-3FBD-482C-83B0-96FB79B74DED&displaylang=EN

--
Peace!
Kurt
Self-anointed Moderator
microscum.pubic.windowsexp.gonorrhea
http://microscum.com/mscommunity
"Trustworthy Computing" is only another example of an Oxymoron!
"Produkt-Aktivierung macht frei"
 
S

Stan Brown

Sounds like the files were generated with Word.

Open up one of the files in Notepad. Does it look like below?

Good catch, Kurt! There weren't most of the lines you mentioned, but
there was a <META NAME="Generator" CONTENT="Microsoft Word 97">
line. When I removed it from one file and hit F5 in explorer, the
icon changed to the correct one.

Follow-up question: Why is XP _reading_into_a_file_ toe decide which
icon to show? I thought that was supposed to be based strictly on
the extension.
 
S

Stan Brown

On Sun, 29 May 2005 10:49:21 -0400, I wrote:

(about .HTM files showing with the MS-Word icon)
Good catch, Kurt! There weren't most of the lines you mentioned, but
there was a <META NAME="Generator" CONTENT="Microsoft Word 97">
line. When I removed it from one file and hit F5 in explorer, the
icon changed to the correct one.

P.S. I didn't create these files myself, but had downloaded them
from Web sites.

Thanks for the offer of a filter tool, but I'll just run a batch
file to remove that line from the files where it occurs.
 
K

kurttrail

Stan said:
Good catch, Kurt! There weren't most of the lines you mentioned,

I was pulling up what Word 2003 adds to a html file. A lot of useless
nonsense!
but
there was a <META NAME="Generator" CONTENT="Microsoft Word 97">
line. When I removed it from one file and hit F5 in explorer, the
icon changed to the correct one.

Follow-up question: Why is XP _reading_into_a_file_ toe decide which
icon to show? I thought that was supposed to be based strictly on
the extension.

So it will open up the Office editing program it was created with. It
is useful when it comes to creating html slideshows with Powerpoint.
It's usefulness when it comes to Word is debatable at best.

--
Peace!
Kurt
Self-anointed Moderator
microscum.pubic.windowsexp.gonorrhea
http://microscum.com/mscommunity
"Trustworthy Computing" is only another example of an Oxymoron!
"Produkt-Aktivierung macht frei"
 

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