|
<< Click to Display Table of Contents >> Navigation: Reference > RCPs > BEFORE |
This RCP is used to run something before starting the CL run.
IMPORTANT: This RCP is only available when using the Companion CL Window, it will be ignored using Classic CL.
When a CL run is started from the CL window BEFORE commands will be executed before CL starts. They will be executed in the order they appear in the control stage.
The syntax is:
BEFORE=command,
BEFORE=command arguments,
If command is a file name then the default program will be used to open it.
If the command or the arguments contain spaces they must be enclosed in single or double quotation marks ( ' or " ).
Before commands suspend execution until they are completed.
The program is invoked in the project directory, so files in the same folder as the main script are available.
Examples:
BEFORE=prepare.bat,
BEFORE="get ready.bat",
BEFORE="my program.exe" "change this.stp" "before",
BEFORE="C:\Private\my program.exe" "change this.stp" "before",
BEFORE=region.txt,
BEFORE="Check list.csv",
BEFORE=Notepad.exe "myscript.stp"