Method script.run
Overload
Starts executing a script. Does not wait.
public static int run(string script, params string[] args)
Parameters
script (string)
Script name like |
args (string[])
Command line arguments. In the script it will be variable args. Should not contain |
Returns
int
Native process id of the task process. Returns -1 if failed, for example if the script contains errors or cannot run second task instance. Returns 0 if task start is deferred because the script is running (ifRunningwait/wait_restart). If role editorExtension, waits until the script ends, then returns 0. |
Exceptions
FileNotFoundException
Script file not found. |