k2k 5 Posting Whiz

i am trying to write a bat script to ping a machine if it is up.

i am trying to do something like this

if "ping xxxMachine | findstr reply" echo "xxxMachine is up"
else echo "xxxMachine is down"

the syntax is definitely wrong, does anyone know if this is doable with bat scripting?