condensed line from ping() If you don't like to use a user defined function :



break on

$a = "nb2jpzz1","Foo" ;replace with an array of valid machine names  [Wink]

for each $m in $a
    shell '%Comspec% /C ping $m -n 2 | find /C "TTL=" > nul'
    if not @error
        $m + " is online" ?              ; replace with your action
    else
        $m + " appears to be offline" ?
    endif
next


get $



As 'TTL=' is the only valid search pattern for online machines ...

hth
Jochen
_________________________