
CODE: [Copy to clipboard][ Last edited by 不得不爱 on 2009-6-8 at 00:27 ]@echo off
for /f "delims=" %%a in (data.txt) do (
start/b ping %%a -n 10 -l 32>%%a.ping
start/b tracert -d %%a>%%a.tracert
)
:a
set c=0
for /f %%a in ('tasklist^|findstr/i "ping.exe tracert.exe"') do set c=1
if %c%==1 goto a
2.bat
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |