k2k 5 Posting Whiz

i am trying to do something like

set var= ping google.com | find "Received = 4"

if [var has something]
then
  echo "ping well"

something like that. in unix i can use the ` ` to execute shell command and set the returned value to the variable... can bat script do that? how about the if statement?

thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.