Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open .chm file at specific page/topic using command line arguments

I am attempting to open a .chm file(A windows help file) at a specific page/topic by using a system call in C++.

I can successfully open the .chm file to the start page through the following code, but how can I open a .chm file to a specific page/topic inside the help file?

system("start c:/help/myhelp.chm");

PS: I know system is evil/discouraged but the system part is not really relevant its the command line arguments I pass with the .chm file(that will specify what page I want to open) that I am trying to determine.

like image 483
sazr Avatar asked Jun 18 '12 04:06

sazr


1 Answers

Ok the arguments are like so:

system(" /Q /E:ON /C HH.EXE ms-its:myChm.chm::myPageName.htm");
like image 118
sazr Avatar answered Oct 11 '22 12:10

sazr