Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Batch file to MASS ping group of computers on network by name, check reply, and resolve hostname

I am trying to ping many IP's at once and to date it's been done manually. I would like to write a batch script that reads from a list of IP's and then pings each connection, then reports if the ping test failed.

This is the code i've had so far:

@echo off

for /f "tokens=*" %%I in ("C:\batch\IPlist.txt") do call 
:pinger %%I
goto :eof
echo %TIME% >> "C:\batch\pingLOG.txt"
ping %1 >> "C:\batch\pingLOG.txt"

I do this but even using pauses it returns no pingLOG.txt.

any ideas?

Thanks, Dylan

share|improve this question

marked as duplicate by Chopper3 Aug 19 '11 at 15:44

This question was marked as an exact duplicate of an existing question.

Have you tried searching on Serverfault for similar questions? This would appear to do what you want:… – Jeff Miles Aug 19 '11 at 14:44

Is this a coding questions or a server management question?

If it is the latter, then you might just want to use FREEping by Tools4ever. This is a free solution to your problem, as you can add hosts to ping and it will popup to tell you when the ping fails to reach its destination. You can easily set a time between ping, the packet size as well as other useful features.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.