From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use Shell.ExitCode as a replacement.
The error code returned by the shell.
It returns 0 if the Execute method was executed successfully. Otherwise, it returns a system-supplied error code. On Windows, it returns -1 if execution fails.
This example checks the value of error code and prints it if it is not zero.