For loop in CMD parsing entries in a TXT file
From Tech-Wiki
Revision as of 15:10, 14 July 2016 by Fabricio.Lima (Talk | contribs)
for %a in (host1 host2 host3) do Ping %a
for /F %a in (hosts.txt) do Ping %a
for %a in (host1 host2 host3) do Ping %a
for /F %a in (hosts.txt) do Ping %a