quote:

shell '.\runas /user:administrator /pass:HIDDEN /w nonexistent.exe'
? @ERROR " " @SERROR

Won’t this just return the error code of the shell command?? So error code 0 is actually correct behavior?

Runas runs in shell so error code is in shell and not in kix because kix does not fire runas but shell does. Kix just fires shell and moves on. What shell runs is irrelevant to kix if shell is started correctly.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.