作者/来源:yixinu.com
栏目:运维/编程
日期:2012-04-09 02:03:07
ping100到110这10台主机,并将结果写到netlist.txt这个文件
C:Documents and SettingsAdministrator>for /l %i IN (100,1,110) DO ping -n 1 192.168.73.%i >> netlist.txt
执行结果为:
C:Documents and SettingsAdministrator>ping -n 1 192.168.73.100 1>>netlist.txt C:Documents and SettingsAdministrator>ping -n 1 192.168.73.101 1>>netlist.txt 省略…………