Tried your snippet as well Lonkero. I also get ping successful on every address in win98, even though the "(0% loss)" should work...

code:
 
$ip="0.0.1.1"
shell '%comspec% /c ping $ip | find "(0% loss)" >null'
if @error
"could not ping"
else
"ping succesfull"
endif



[ 18. March 2003, 01:31: Message edited by: CitrixMan ]