I have to call html help - chm files, that is - from a command prompt. i know how to call the file:
hh "mk:@MSITStore:C:\temp\damatomodule.chm"
I even know how to go to a specific page
hh "mk:@MSITStore:C:\temp\damatomodule.chm::/page/topic.htm"
What I have to do is go to a specific keyword without knowing the path and name of the page. This is about a contect sensitive help system in a legacy editor that allows to add third party programs.
How would I pass a parameter $curtoken that contains the word that is to be searched for in the chm file to above command line?
AFAIK you can't do this with hh.exe - but KeyHH.exe is an option.
KeyHH.EXE is a free program from KeyWorks Software, written by Ralph Walden. KeyHH.EXE supports many more command line options then HH.EXE. You can get more information about KeyHH.EXE from the KeyWorks web site at http://keyworks.helpmvp.com/.
Click KeyHH 1.1, search for the download link (scroll down) and install. From the command line call: