Creation of a Basic batch file tp generate ping output
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
Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!