Scripts as commands: passing parameters

A script that calls another script may specify parameters as key (value) pairs. Optional parameters can be omitted. In other words, scripts are called in the same way as predefined commands.

The following is an example of the script RunITP being called as a command. Note the parameters.

RunITP 
	Model("rep:/documenttemplate/InstallationTest/Letter") 
	Result("c:\tmp\output.doc") 
	Options("/qim");

This shows the parameters as declared in the script RunITP.

Parameter Text Model;
Parameter Text Result;
Parameter Text Options = "/qi";
Parameter text Configuration ="ITPWORKDIR+"\Config\itpcfg";

The parameters Model and Result are required. They must be specified in the call. The parameters Options and Configuration are optional. The call overrides the Options default of "/qi", and then the default for the parameter Configuration is used because the parameter Configuration is not present in the call.