@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