Thanks for the great replies, but it seems I am still having a problem that Imdomman was having with ping outputs.
It works from a command line but not from the batch call.
I have the file ips.txt with a single, pingable, address and here is what I get.
Ping.bat -- >
if exist pings.txt del pings.txt
for /f %%I in (ips.txt) do ping %%I >> pings.txt
Output-->
C:\pings>if exist pings.txt del pings.txt
C:\pings\pings.txt
C:\pings>for /F %I in (ips.txt) do ping %I 1>>pings.txt
C:\pings>ping 12.12.12.2 1>>pings.txt
From a Command window I can type -->
ping 12.12.12.2 >> pings12.txt
Output in pings12.txt-->
Pinging 12.12.12.2 with 32 bytes of data:
Reply from 12.12.12.2: bytes=32 time=127ms TTL=234
Reply from 12.12.12.2: bytes=32 time=125ms TTL=235
Reply from 12.12.12.2: bytes=32 time=144ms TTL=235
Reply from 12.12.12.2: bytes=32 time=124ms TTL=234
Ping statistics for 12.12.12.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 124ms, Maximum = 144ms, Average = 130ms
So anyone know what the 1 is or what is causing it??
Also, when I run the complete list of IPs, I get a message in the command window that says the process cannot access the file because it is being used by another process.