If shell is started ok then @error will be 0 cause kix did what it had to do (launch Shell) and no errors came up.
To get the error codes of a Shell you could use the WSHPipe() UDF.

WshPipe() - Pipes the results of a shell command to an array.


Edited by Mart (2005-09-21 10:44 AM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.