cant read CHM file in directory contains character #

  • Thread starter EricTsai - ½²©v¿«
  • Start date
E

EricTsai - ½²©v¿«

Hi,
I found that if a chm file located in a directory,
and the absolute path of the directory contains any #,
I can open the chm file but can't see any content.


Example:

A win2000advsrvhelp.chm in D:\eBooks#\Win2000,
then I can't see the content of the chm file.
After I rename eBooks# to eBook,
I can see the content.
 
K

Kelly

Interesting!

It is possible your CHM file association is corrupt.

Go to Start/Run/Regedit and navigate to this key:

HKEY_CLASSES_ROOT\chm.file\shell\open\command

The Default value for this entry should be: "C:\WINDOWS\hh.exe" %1
(you may need to make changes if Windows is not on C, or if your XP
installation is not in the Windows folder).

Next, go to: HKEY_CLASSES_ROOT\.chm

The Default value for this entry should be: chm.file

To modify a value, double click on the Default entry and enter the values as
shown.

If the above doesn't help: Go to Start/Run and type in:
%userprofile%\Application Data\Microsoft\HTML Help and rename it.

Note: Also your hh.dat file. Do a Start/Search for hh.dat. It should be
found here
"%userprofile%\Application Data\Microsoft\HTML Help. If found, rename or
delete.

Good luck!
 
E

EricTsai - ½²©v¿«

Thank you, Kelly.
But unfortunately all these methods don't work.

I've done more experiment.
If the path contains #, I can see Table of Content of the file.
But at the right side, it says: Cannot display page. Can't find server or
DNS error.
If the filename contains #, I can also see Table of Content of the file.
But at the right side, it's blank. It doesn't show anything.
If both path and filename contains #, the situation is the same as only path
contains #.

I think maybe because chm is compiled html file,
and hh.exe has some problem dealing with #.

Any suggestions? ^_^
 
B

BearFx

Eric,

You are not the only one experiencing this problem. It happens to me
on my two XP boxes at home, and on at least 5 at work.

It is a very frustrating problem. At first I thought my help files
were corrupted- The possibility that the directory name caused the
problem didn't even occur to me. I was recreated the help files for
my programs when I moved one to my desktop, and voila- it dispplayed
properly again.

SDF
 
P

Pete Lees

Eric,
I found that if a chm file located in a directory,
and the absolute path of the directory contains any #,
I can open the chm file but can't see any content.

This is a known problem, described in Knowledge Base article
319247(http://support.microsoft.com/?kbid=319247).

The hash symbol normally designates a bookmark name in HTML, so its
presence in an HTML Help pathname confuses the help viewer.
 
E

EricTsai - ½²©v¿«

I've tried to search in KB but didn't see that article....
Thank you, Pete!
 
B

bhabanisb

Hi,
I found that if a chm file located in a directory,
and the absolute path of the directory contains any #,
I can open the chm file but can't see any content.


Example:

A win2000advsrvhelp.chm in D:\eBooks#\Win2000,
then I can't see the content of the chm file.
After I rename eBooks# to eBook,
I can see the content.

Eric

As u mentioned,file name with "#",does not display content of the file,is absolutely right.Best solution would be to avoid "#" in name of the file.Same problem observed in Win7 too.

Enjoy
 
J

J. P. Gilliver (John)

In message <[email protected]>,

Interesting problem - weird!
Eric

As u mentioned,file name with "#",does not display content of the
file,is absolutely right.Best solution would be to avoid "#" in name of
the file.Same problem observed in Win7 too.

Enjoy

(Are you related to Hot-Text?)

Eric posted that if there's a # in the pathname, he can't see the
content. Since he's already worked out that it's the # that causes the
problem, I would guess he _knows_ the "solution" you suggested.

(Note - it isn't the _filename_, but the _path_, at least in the example
given.)

Eric: not that it's a solution to the problem, but does the same happen
if you use "subst" or "Map Network Drive" to point to it? (I know this
sounds like the same sort of "solution" as bhabanisb's, but the answer
_might_ help someone else address the problem.)
 
R

Rasta Robert

Eric posted that if there's a # in the pathname, he can't see the
content. Since he's already worked out that it's the # that causes the
problem, I would guess he _knows_ the "solution" you suggested.

(Note - it isn't the _filename_, but the _path_, at least in the example
given.)

Eric: not that it's a solution to the problem, but does the same happen
if you use "subst" or "Map Network Drive" to point to it? (I know this
sounds like the same sort of "solution" as bhabanisb's, but the answer
_might_ help someone else address the problem.)

Almost ten years after posting the original post, Eric
probably isn't waiting for answers anymore.
 
J

J. P. Gilliver (John)

Rasta Robert said:
Almost ten years after posting the original post, Eric
probably isn't waiting for answers anymore.

Oops - hoised by my own petard! I hadn't spotted the date. Probably
because someone posted a response recently, and it was that I was
responding to (i. e. that someone hadn't noticed the date either!).
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

The fetters imposed on liberty at home have ever been forged out of the weapons
provided for defence against real, pretended, or imaginary dangers from abroad.
-James Madison, 4th US president (1751-1836)
 
J

J. P. Gilliver (John)

"Ken Blake said:
I hate to correct misspellings, but since it's a quotation...

That's "hoist," not "hoised."
I've had this one out in another newsgroup. Do you know what a petard
is? Hoised is indeed an archaic - arguably even obsolete - form of the
verb relating to what a petard does, but they don't hoist (lift with
rope).
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

.... the pleasure of the mind is an amazing thing. My life has been driven by
the satisfaction of curiosity. - Jeremy Paxman (being interviewed by Anne
Widdecombe), Radio Times, 2-8 July 2011.
 
J

J. P. Gilliver (John)

Hot-Text said:
Name it to: Win2000.chm
If you see no content afterward

Because there no content in it
Not so. In the part you snipped, he said he _could_ see content in it if
the path (not the filename) _didn't_ contain a #.
 
K

Ken Blake, MVP

I've had this one out in another newsgroup. Do you know what a petard
is?


Yes, I do. A bomb. I looked it up many years ago.

Hoised is indeed an archaic - arguably even obsolete - form of the
verb relating to what a petard does, but they don't hoist (lift with
rope).




Perhaps so, but "hoist," not "hoised" is what Shakespeare wrote.
That's the way it's spelled in all the editions of Shakespeare I've
ever seen, including my two-volume New Variorum Edition of Hamlet.
 
J

J. P. Gilliver (John)

"Ken Blake said:
Yes, I do. A bomb. I looked it up many years ago.
Indeed - usually a small grenade, as might be used by a potential
assassin.
Hoised is indeed an archaic - arguably even obsolete - form of the
verb relating to what a petard does, but they don't hoist (lift with
rope).




Perhaps so, but "hoist," not "hoised" is what Shakespeare wrote.
That's the way it's spelled in all the editions of Shakespeare I've
ever seen, including my two-volume New Variorum Edition of Hamlet.

I didn't know the quote was from old Shak.; however, I'd not rely on his
spelling to be consistent! (Or, to be fair, anyone from that period:
consistency in spelling dates from a somewhat later time.)
 
K

Ken Blake, MVP

"Ken Blake said:
Yes, I do. A bomb. I looked it up many years ago.
Indeed - usually a small grenade, as might be used by a potential
assassin.
Hoised is indeed an archaic - arguably even obsolete - form of the
verb relating to what a petard does, but they don't hoist (lift with
rope).




Perhaps so, but "hoist," not "hoised" is what Shakespeare wrote.
That's the way it's spelled in all the editions of Shakespeare I've
ever seen, including my two-volume New Variorum Edition of Hamlet.

I didn't know the quote was from old Shak.; however, I'd not rely on his
spelling to be consistent!



True, but it doesn't matter. We're talking about how it was spelled in
a particular quotation from Hamlet, and that was "hoist."


(Or, to be fair, anyone from that period:
consistency in spelling dates from a somewhat later time.)


Certainly true, but also irrelevant.
 
J

J. P. Gilliver (John)

"Ken Blake said:
"Ken Blake said:
On Sun, 16 Feb 2014 22:43:06 +0000, "J. P. Gilliver (John)"

In message <[email protected]>, "Ken Blake,
On Sat, 15 Feb 2014 09:50:43 +0000, "J. P. Gilliver (John)"


Oops - hoised by my own petard!



I hate to correct misspellings, but since it's a quotation...

That's "hoist," not "hoised."

I've had this one out in another newsgroup. Do you know what a petard
is?


Yes, I do. A bomb. I looked it up many years ago.
Indeed - usually a small grenade, as might be used by a potential
assassin.
Hoised is indeed an archaic - arguably even obsolete - form of the
verb relating to what a petard does, but they don't hoist (lift with
rope).



Perhaps so, but "hoist," not "hoised" is what Shakespeare wrote.
That's the way it's spelled in all the editions of Shakespeare I've
ever seen, including my two-volume New Variorum Edition of Hamlet.

I didn't know the quote was from old Shak.; however, I'd not rely on his
spelling to be consistent!



True, but it doesn't matter. We're talking about how it was spelled in
a particular quotation from Hamlet, and that was "hoist."

You may be, I certainly wasn't (-:!
 

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