Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThe problem that I'm facing is that I always use PSExec to launch the programs, whether they be Robocopy or some other executable or batch file, so the file name is always psexec, but the arguments are always different. My question is how can I determine which of the programs has returned the code? Both PSExec and the other program are being executed - but before robocopy even executes PSExec could fail with an error code of 5 access denied - how can I determine which error code is coming from which program? or am I just kind of left guessing?
      singulars
    2. COAhh. Got it. Unfortunately, `PsExec` will return always success as long as is able to launch the application successfully irrespective of whether the application succeeded or failed. So whatever error code you get from launching PsExec will always be from PsExec. If that code indicates success only then you try to test for code from the actual application. One messy way to do that is to launch a script with `PsExec` which in turn launches your application, gets it's exit code and writes the code to a file. You can then read the code off the file.
      singulars
    3. COThank you. it's as I feared :/ I think instead I'm going to do statistical analysis on the results and store the number of robocopy commands and compare them to the number of potentially failed commands in the range 0-8. If the number of failures equals or exceeds the number of robocopy commands, then the problem is almost certainly coming from PSExec/windows and I can warn the user. Otherwise I can just display the statistics and let the user decide if things are going according to plan or if they need to go investigate personally.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload