Running a Script, Switches

You can use switches and pass system variable values to TaskExec when you run a script.

The syntax is:

"C:\Program Files\WinTask\Bin\TASKEXEC.EXE" --s --#IgnoreErrors=1 --#ExecTimeout=10 "C:\Program Files\WinTask\Scripts\<my_script>.ROB" ["<param1>" "<param2>"]

The switch --s means that the command line will return no error message if the execution of the .ROB cannot be started for any reason (silent mode); in case of an error for starting the execution, the process TaskExec.exe will return a non-zero error code.

You can pass system variable values; in the example above, #IgnoreErrors will be set to 1 and #ExecTimeout to 10 during script execution. If a system variable is set to a new value within the script, it's the new value which is taken into account.