For loop in CMD parsing entries in a TXT file

From Tech-Wiki
Revision as of 09:20, 24 August 2016 by Linogenco (Talk | contribs)

Jump to: navigation, search

Back to Misc


for %a in (host1 host2 host3) do Ping %a
for /F %a in (hosts.txt) do Ping %a