RunResult
Object returned by utils.Run.
Object returned by utils.Run.
ExitCode: number = 0
Process exit code.
This value is meaningful when wait=true and the launched process handle was available.
If wait=false, this value is usually 0.
OK: boolean = false
High-level operation result.
If wait=false, true means that ShellExecuteEx accepted the shell request.
If wait=true and a process exit code is available, true means that the process exited with code 0.
A non-zero process exit code is reported as OK=false, while Win32Error usually remains 0.
ShellCode: number = 0
Native ShellExecuteEx result code.
Values greater than 32 usually indicate a successful shell-level operation.
Values less than or equal to 32 indicate a shell-level error, such as file not found, access denied, no association, or invalid executable format.
This value describes the shell operation itself, not the launched process exit code.
Win32Error: number = 0
Win32 error code returned by GetLastError, or an internally assigned Win32 error code.
This is 0 on success.
If OK=false and Win32Error is 0, the process was usually started successfully but returned a non-zero ExitCode.