check out the WshPing() UDF

and do something like

break on
while 1
$p=wshping($ip,2)
if $p[1]>0
? 'ping successful'
else
? 'ping failed'
endif
sleep 3
loop
_________________________
How to ask questions the smart way <-----------> Before you ask