RunAsync (async execution)
ts
function RunAsync(commandLine: string): boolean;
The RunAsync
function spawns a process that executes an external program. The executed program can take command line parameters, as shown in the example below.
This function does not wait for the spawned process to exit, and it immediately returns true if the process was started without errors, or false if errors occurred.
Example
ts
{
if (RunAsync('cmd /c "/my_shell_scripts/some_script.bat"')) {
Log('Batch script started successfully');
}
}