@Echo off
setlocal enabledelayedexpansion
date /t > IPList.txt
time /t >> IPList.txt
echo =========== >> IPList.txt
For /L %%f in (1,1,10) do ping 192.168.0.%%f -n 1 & find "request timed out." && echo 192.168.0.%%f request timed out.>> IPList.txt
cls
Echo Finished!
@Echo on
Notepad.exe IPList.txt
pause
为什么会PING到第一个IP的时候就运行不下去了,望各位大侠告知!
setlocal enabledelayedexpansion
date /t > IPList.txt
time /t >> IPList.txt
echo =========== >> IPList.txt
For /L %%f in (1,1,10) do ping 192.168.0.%%f -n 1 & find "request timed out." && echo 192.168.0.%%f request timed out.>> IPList.txt
cls
Echo Finished!
@Echo on
Notepad.exe IPList.txt
pause
为什么会PING到第一个IP的时候就运行不下去了,望各位大侠告知!

