From Xojo Documentation
The exit code returned by the shell.
It returns 0 if the Execute method was executed successfully. Otherwise, it returns a system-supplied exit code. On Windows, it returns -1 if execution fails.
This example checks the value of exit code and prints it if it is not zero.