Not so fast Yakamoto

what is '0% loss' ???

Never seen that ! is it 9x ?????
In NT a ping reply is for example:

Reply from 10.131.96.20: bytes=32 time=30ms TTL=124

i use this in 3.63 (no temp files needed):

code:

$machine = "whatever"
$timeout = 5000
$pingloop = 6
gosub ping
if $reply
; continue
else
; loop next
endif
.
.
.
ing
$reply = 0
$c = 0
do
shell '%ComSpec /c /e:1024 ping ' + $machine + ' -n 1 -w ' + $timeout + ' | find /C "TTL=" > nul'
if @error = 0
$reply = 1
return
endif
$c = $c + 1
until $c = $pingloop
return


J.

[ 02 August 2001: Message edited by: jpols ]

_________________________