|
Command Line
Webgenz CMS can be called using a command line interface as described below.
Syntax:
webgenz /project=project_file /mode=mode /window=window_state /command=command
where:
- "project_file" is the path name of any Webgenz CMS Project file. This Project must exist in the current Webgenz CMS Project History list
displayed in the Projects drop-down list.
- "mode" is "1" or "2"
1 means "automatically generate the project when Webgenz CMS starts"
2 means "automatically generate the project when Webgenz CMS starts, and exit
Webgenz CMS when the generation is complete"
- "window_state" is "0" or "1"
0 displays the Webgenz CMS window in a normal state
1 displays the Webgenz CMS window in a minimized state
This parameter is optional and will default to "0".
- "command" is the name of a program to execute after the project is
automatically generated. This can be used to string batch files together
(i.e. call Webgenz CMS from one batch file and then have Webgenz CMS call the next
batch file). This parameter is optional.
Example:
c:\webgenz.exe /project=c:\test.web /mode=2 /window=1 /command=c:\go.bat
Notes:
- Using the command line interface you can call Webgenz CMS from a batch file (for example, a build script).
However, the generation of the Webgenz project may occur in a manner which is asynchronous to the batch file.
In other words, the Webgenz CMS program is launched, but the batch file may keep executing. If this is undesirable,
you can use the "command" option on the Webgenz CMS command line (as described above) to string batch files together.
|