The only shell > nul and using the return code inside Kix that i can think of, is the use of command line programs that set the @error code, one example is the FIND command.

Here is an example using "ping | find" to see if a computer is alive.

code:

$ip = "128.2.0.234"

shell '%comspec% /c ping -n 1 $ip | find /i "TTL" > nul'
select
case @error = 1
"$ip is dead"
case @error = 0
"$ip is alive"
endselect


Bryce

------------------
kix.isorg.net