DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Windows NT / 2000 / XP (http://www.daniweb.com/forums/forum10.html)
-   -   Pinging server using bat file. (http://www.daniweb.com/forums/thread164434.html)

Pim Dec 27th, 2008 12:34 pm
Pinging server using bat file.
 
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.

freshfitz Dec 28th, 2008 11:35 am
Re: Pinging server using bat file.
 
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>

HoustonIT Jan 1st, 2009 11:34 pm
Re: Pinging server using bat file.
 
try ping -n (number of requests) to limit the requests sent. For example

ping -n 5

would send 5 requests.


All times are GMT -4. The time now is 12:27 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC