Hello,

I'd like to use a .bat file to ping a server. I've tried:

ping www.google.com

And some variations, but then it just keeps repeating all the time.

Thank you.

What are you tring to do. if you use ping google.com in a .bat file that will ping google.com? So just use Ping <server ip>

try ping -n (number of requests) to limit the requests sent. For example

ping -n 5

would send 5 requests.

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.