Adrienne Boswell schreef:
Gazing into my crystal ball I observed Mark <ma*********@exeloncorp.com>
writing in news:642e18da-efa9-4956-b8d4-419a8e6a2fd8
@m3g2000hsc.googlegroups.com:
>Hello
This might be an odd question. I have an Excel VBA program that
searches through a folder for any .htm or .html file, searches the
file for any 'hrefs' and prints them to the spreadsheet. For some
reason I have noticed that some of the files are HTML Documents, and
some are HTML Files, and the program is only searching through the
HTML Files. I'm not sure if there is a difference between the two.
The only thing that I can notice is that they are different icons, and
when double clicked, the HTML Document opens in IE, and the HTML File
opens in Notepad. Any ideas?
IIRC, Windows treats html and htm differently because back in the day,
Windows was restricted to eleven characters in its file naming
conventions, the name of the file could be up to eight characters, and
the extention was three.
I must say that I still tend to use three character extensions however
Windows does not show them by default anymore which is supposed to be an
advance to the noob (who is not incidentily renaming a file to a
different type) but confusing for the normal user IMO. So I would
suggest unhiding file extension view, it is much more informative than
those arbitrary names which are given by the programs that are
associated with it. I don't like the name HTML Document much, that could
also have refered to packaged HTML, like that for help file formats.
>
Html and htm files are exactly the same. You can set how to open each
through the control panel, folder options, file types.
I think the program will search both *.htm and *.html since it notices
both extensions. But you can just check that and otherwise change the
program a bit.