Publication Command Line

Publications have support for some command line switches: if you want to call your publication from your application and display a specific page for instance, or just run it using the Start|Run option of Windows.

The following command line switches are supported: page and mapid. But you can also add your own switches thanks to HEScript: see below.

page:

Syntax:

PUBFILE.EXE page [page to display]

Use this switch to specify the virtual path to the HTML page that should be displayed by the publication.

Examples:

MYPUBFILE.EXE page comments.htm

PUBFILE.EXE page "my path\page1.htm"

When you have spaces, be sure to enclose the path in quotes ("").

mapid:

Syntax:

PUBFILE.EXE mapid [map ID of the page to display]

This switch can be used only if a map file is created. Specify the Map ID (integer) of the page you want to display.

Example:

MYPUBFILE.EXE mapid 1014

add your own switches

If you work with HEScript, it is possible to read the parameters passed to the publication .exe file when the latter is run.

You can do this using the ParamStr internal function.