To publish a project from the command you just need to add an additional command known as a "switch" to specify the output format you want to use. The following example compiles the project to an HTML Help CHM file, using the last output location and file name you used when you published manually.
See the Syntax reference for details of the available output format switches.
HELPMAN.EXE "F:\My Projects\projectfile.hmxz" /CHM
The output format switch must always be the first switch after the project file name. All the other switches can come in any order but they must be after the output format switch. The only exception here is the /TSK switch for publishing predefined publishing tasks, which can be used on its own without any other switches. See Output to multiple formats for details.
Note the use of quotes! All paths and file names that contain spaces must be enclosed in quotes.
|