IP如下- 58.67.224.0
- 58.67.231.0
- 58.67.232.0
- 58.193.80.0
- 58.193.112.0
- 58.193.120.0
- 58.214.0.0
- 58.214.49.0
- 58.214.51.0
- 58.214.82.0
- 58.214.91.0
- 58.214.97.0
- 58.214.142.0
- 58.214.143.0
- 58.214.144.0
- 58.214.234.26
- 58.214.234.27
- 58.214.236.148
- 58.214.236.149
- 58.214.239.0
- 58.214.240.0
- 58.214.240.90
- 58.214.240.91
- 58.214.240.210
- 58.214.240.211
- 58.214.243.202
- 58.214.243.203
- 58.214.244.186
- 58.214.244.187
- 58.214.247.34
- 58.214.247.35
- 58.214.247.98
- 58.214.247.99
- 58.214.248.17
- 58.214.248.18
- 58.215.39.0
- 58.215.40.0
- 58.215.74.0
- 58.215.76.0
- 58.241.0.0
- 58.241.13.0
- 58.241.14.0
- 58.241.21.0
- 58.241.25.0
复制代码 批处理如下- @echo off
- color 0a
- for /f %%i in (ip.ini) do (
- ping -n 1 -w 1 %%i | find /i "lost = 0" && set c=1||set c=0
- if "%c%"=="0" (echo %%i>>ping.ini)
- )
- pause
复制代码 测试情况如下- ^c^c^c^c^c^c^c^c^c^c^c^c^c^c^c^c^c^c^c
- ^c^cc^c^
复制代码 不知为何 去掉@echo off后测试也没发现问题所在
请指教
[ 本帖最后由 jcy0307 于 2010-2-4 12:48 编辑 ] |