well, simple check to ping reply retrieved that the string was little wrong.
you will be perfectly server with:
code:
$ip="0.0.1.1"
shell '%comspec% /c ping $ip | find "(0% loss)" >null'
if @error
"could not ping"
else
"ping succesfull"
endif

_________________________
!

download KiXnet