@echo off&setlocal enabledelayedexpansion
cd.>result.txt
for /f "tokens=4 delims=." %%j in (dnsip.txt) do (
for /f "tokens=2 delims=." %%i in (www.txt) do (
set /p= %%j(%%i^) <nul>>result.txt
)
)
echo.>>result.txt
for /l %%a in (1 1 5) do (
cls
echo 正在执行第 %%a 次
set /p=%%a <nul>>result.txt
for /f %%j in (dnsip.txt) do (
for /f %%i in (www.txt) do (
for /f "tokens=3 delims=:" %%k in ('dig @%%j %%i^|findstr /n ".*"^|findstr "time"') do (
set /p=%%k <nul>>result.txt
)
)
)
echo.>>result.txt
)
echo.&echo 执行完毕!
pause>nul
我把findstr /n .*给去掉后测试发现就没有结果了,不知道为什么
我运行批处理的时候还经常有报错出现,是不是这原因导致我有些数据丢失了呢?
正在执行第 50 次
\cvs\9_3_x\lib\isc\mem.c:877: INSIST(ctx->stats.gets == 0U) failed.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.