dos命令中的FOR循环

DOS 下的FOR循环
2003-06-21          阅读: 4400
for /L %%A in(1,1,254) do ping 192.168.1.%%A |find "Reply" >>ip.txt //1开始,步进=1,到254
for /F %%A in (ip.txt) do arp -s %%a ///F从文件中取每一行
for /D %%A in (*.*) do dir $$A // /D 取目录名
[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12172/viewspace-796889/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12172/viewspace-796889/

你可能感兴趣的:(dos命令中的FOR循环)