HtmlHelp(). The problem of opening another file.

laurenJ 1 Reputation point
2021-12-14T02:51:37.987+00:00

I want to open a chm file with the same name with different paths.

  1. c:\1.0\test.chm
  2. c:\2.0\test.chm
  3. c:\3.0\test.chm
    When it is said that a file with the same name exists in a different path as above, I'd like to open each file using htmlhelp().

I tried to open it sequentially by changing the path, but the files that were first opened continue to open.
This phenomenon continues until the process ends.
Is there a way to solve it?

I used a translator. Please excuse me.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2022-01-06T15:15:11.137+00:00

    Hi there,

    Microsoft Security Updates block the display of CHM file contents when opened from a network drive (or a UNC path). This is Windows' attempt to stop attack vectors for viruses/malware from infecting your computer and has blocked out the .chm file that draws data over the "InfoTech" protocol, which this chm file uses.

    Right-click the chm file, and you will get the "yourfile. chm Properties" dialog box, at the bottom, a button called "Unblock" appears. Click Unblock and press OK, and try to open the chm file again.

    Add the following value to the registry and might also solve the problem.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
    "MaxAllowedZone"=dword:00000001

    Hope this resolves your Query!!


    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.