How can I call .chm topics from the command line using hh.exe?

I would like to call .chm topics from the command line using hh.exe.

 Accepted Answer

The following commands can be used to call .chm files in a MATLAB code:
CHMFile = which([Filename '.chm']);
dos(['hh mk:@MSITStore:' CHMFile ]);
Below is the link for the MSDN documentation on invoking topics from .chm files.
<http://msdn.microsoft.com/en-us/library/ms669980(VS.85).aspx#7>

1 Comment

Thanks so much; worked like a charm.
For posterity... To call a specific file:
CHMFile = which([FilenameAsString '.chm']);
TOPICFile = which([TopicnameAsString '.html']);
% Launch CHM Browser opened to TOPIC page
dos(['hh mk:@MSITStore:' CHMFile '::/' TOPICFile]);

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!