Products‎ > ‎H2Compile‎ > ‎

Command-Line Arguments

H2Compile command-line examples:


h2Compile.exe "c:\path\hhProjDir" "c:\path\outDir"

This copies the HTML Help project in folder "c:\path\hhProjDir" into folder "c:\path\outDir". 
Then converts all files to an MS Help 2 project and compiles to a .HxS help file.

h2Compile.exe "c:\path\hhProjDir" "c:\path\outDir" /q

Add the /q (or -q) switch to hide the main window and run the conversion\compilation automatically.
The application will terminate when complete.

h2Compile.exe "c:\path\hhProjDir" "c:\path\outDir" /m

Add the /m (or -m) switch to minimize the main window and run the conversion\compilation automatically.
If the window is still minimized when the job is completed then the application will automatically terminate.

h2Compile.exe "c:\path\hhProjDir" "c:\path\outDir" "1.0.0.1" "(c) Copyright message"

Similar thing, except we are also setting the version and copyright fields.
Again you can optionally add a /q or /m switch at the end.

h2Compile.exe "c:\path\h2ProjDir\project.HxC" /m

This does a compile only. The given HxC project file is compiled to a .HxS help file.
Again you can optionally add a /q or /m switch at the end.

h2Compile.exe "c:\path\hhProjDir" "c:\path\outDir" /space:x

[Version 1.0.4] - By default H2Compile replaces all spaces in file names with the "_" underscore character (otherwise the Microsoft compiler fails). Use the /space:x switch to choose your own replacement character or string. This switch should be added at the end with other optional switches (/m /q).
eg, /space:  -- removes all spaces
eg. /space:-  -- replaces each space with a - char.
eg. /space:$$  -- replaces each space with a "$$" string.

Comments