标题: 【求助】帮忙看看这个批处理为什么不能收集ip地址
[打印本页]
作者: chinaren12
时间: 2007-12-1 19:49
标题: 【求助】帮忙看看这个批处理为什么不能收集ip地址
@Echo off
date /t > IPList.txt
time /t >> IPList.txt
echo =========== >> IPList.txt
For /L %%f in (1,1,2) Do Ping.exe -n 2 192.168.1.%%f
Find "Request timed out." && echo 192.168.1.%%f Timed Out >> IPList.txt && echo off
cls
Echo Finished!
@Echo on
Notepad.exe IPList.txt
对应的网页在这里,我实在是搞不懂哪里错了,请高手指点一下!!!!!
http://tech.china.com/zh_cn/nets ... 71130/14514851.html
作者: knoppix7
时间: 2007-12-1 20:03
@Echo off
date /t > IPList.txt
time /t >> IPList.txt
echo =========== >> IPList.txt
For /L %%f in (1,1,2) Do (
Ping.exe -n 2 192.168.1.%%f |Find "Request timed out." && echo 192.168.1.%%f Timed Out >> IPList.txt && echo off
)
Echo Finished!
@Echo on
Notepad.exe IPList.txt
没试过..自己看看把.
作者: chinaren12
时间: 2007-12-2 10:05
晕,就是一对大括号呀!!!还是自己知识不够呀!!!!