- 帖子
- 352
- 积分
- 332
- 技术
- 1
- 捐助
- 0
- 注册时间
- 2009-1-24
|
@echo off
for /L %%i IN (1,1,254) DO (ping -w 2 -n 1 172.28.0.%%i -n 1 && echo 172.28.0.%%i>>iok.txt || echo 172.28.0.%%i >>ino.txt)
ping -n 1 -W "300000"127.0.0.1 >nul
pause
arp -a >>ip存活.txt
********************
@echo off
for /L %%i IN (1,1,254) DO (
for /L %%m IN (%%i) DO (
ping -w 2 -n 1 172.28.%%i.%%m -n 1 && echo 172.28.%%i.%%m >>iok.txt || echo 172.28.%%i.%%m >>ino.txt
)
)
ping -n 1 -W "300000"127.0.0.1 >nul
pause
arp -a >>ip存活.txt
***************
上段正常,下雨段嵌套失败为什么啊?? |
|