Announcement

Collapse
No announcement yet.

Get exit code from File.Run or Shell.Execute?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get exit code from File.Run or Shell.Execute?

    Is there a way to get the return code from the program invoked with File.Run or Shell.Execute if I have specified WaitForReturn = false?

    The documentation seems to hint there is a way, but does not provide any details:

    "Note: If the specified process has not terminated, the termination status returned is STILL_ACTIVE. If the process has terminated, the ..."

    It does not elaborate on where this STILL_ACTIVE status can be retrieved from.

  • #2
    Is there a way to get the return code from the program invoked with File.Run or Shell.Execute if I have specified WaitForReturn = false?
    No.

    The documentation seems to hint there is a way, but does not provide any details:
    The documentation states that the return code will be STILL_ACTIVE (259) if the process did not finish. This is how GetExitCodeProcess() works.

    Ulrich

    Comment

    Working...
    X