I need to create a batch file that will ping in excess of 25 IP addresses and generate output to a .txt file. I'm sure this is a nice easy one for someboy to answer. I have already tried running the command below but am prompted with the message C:\Computers.txt was unexpected at this time. I'm sure this is something very simple..
For /f %a in C:\Computers.txt do ping %a -n 2 >> C:\Ping_Results.txt