Util.ChainScript() Method

Run a script after the current script exits

Syntax

Util.ChainScript(ScriptFile)

The method syntax has these parts:

Part Description
ScriptFile (String) The full path/name or just the name of the script to be run (see comments)
Return (Nothing) Does not return a value.

Remarks

Chains to another ACP console script when the current script exits. The ScriptFile parameter can be either a full path/name or just a script file name. In the latter case, it is assumed that the script file is in the ACP Scripts folder. As of ACP V6, scripts in the ACP\Scripts folder are shared between the console and the web server.

Chaining will not occur is there is a script error in the current script. Valid only when called from within a running script.

Parameter data may be passed to the chained-to script via the Util.ChainParameter property.