RunAsync (async run a process)

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 then immediately returns true if the process was started without errors, or false if errors occurred.


  if (RunAsync('cmd /c "/my_shell_scripts/some_script.bat"')) {
    Log('Batch script started successfully');