I'm trying to make a batch file that will ping multiple IP's and return the results in a text file

view story

http://serverfault.com – 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 :pinger echo %TIME% >> "C:\batch\pingLOG.txt" ping %1 >> "C:\batch\pingLOG.txt" ::DONE I do this but even using pauses it returns no pingLOG.txt. any ideas? Thanks, Dylan (HowTos)