@
echo off
ping 1.1.1.1 -n 1| find "来自">>ip.txt
ping 2.2.2.2 -n 1| find "来自">>ip.txt
ping 3.3.3.3 -n 1| find "来自">>ip.txt
for /f "tokens=2-15 delims= " %%i in (ip.txt) do set ip1=%%i
echo %ip1%
findstr /e /v /r /c:"aaa.com" "C:\Windows\System32\drivers\etc\hosts">>hosts
echo %ip1% bbb.com>>hosts
echo %ip1% ccc.google.com>>hosts
echo %ip1% ddd.com>>hosts
echo %ip1% eee.com>>hosts
copy hosts "C:\Windows\System32\drivers\etc\hosts" /y
ping 4.4.4.4 -n 1| find "来自">>ip.txt
ping 5.5.5.5 -n 1| find "来自">>ip.txt
ping 6.6.6.6 -n 1| find "来自">>ip.txt
for /f "tokens=2-15 delims= " %%i in (ip.txt) do set ip2=%%i
echo %ip2%
findstr /e /v /r /c:"google.com" "C:\Windows\System32\drivers\etc\hosts">>hosts
echo %ip2% 111.com>>hosts
echo %ip2% 222.com>>hosts
echo %ip2% 333.com>>hosts
echo %ip2% 444.com>>hosts
copy hosts "C:\Windows\System32\drivers\etc\hosts" /y
del hosts /f /q
for /f "tokens=2-15 delims= " %%i in (ip.txt) do set ip1=%%i
for /f "tokens=2-15 delims= " %%i in (ip.txt) do set ip2=%%i
请问此行如何修改才能达到以下功能,各自取最小的响应时间的 IP 为%ip1%和%ip2%