I'm trying to ping about ~20-30 servers that are on a text file and can be updated accordingly (servers change name constantly or become obsolete). And I don't want to put the servers in the batch file and have to edit it every time something changes.
But my inquiry would be: how do I ping a set of servers from a .txt file and output the results (if it's online or not) on a separate .txt file (let's call it "Site_A_Servers.txt") with:
Site_A_Servers.txt:
Server A is online.
Server B is online.
Server C is offline!
Server D is etc..
Thank you for your time! :)