@echo off
set filePath=D:/ping.txt
set ping_url1=www.baidu.com
set ping_url2=www.163.com
set sleep_times=5
:top
echo starting test network...
echo %date% %time%>>%filePath%
ping %ping_url1% -n 1|findStr "TTL" >> %filePath%
ping %ping_url2% -n 1|findStr "TTL" >> %filePath%
ping -n %sleep_times% 127.1 >nul
goto top
ping保存结果和时间戳
最新推荐文章于 2024-05-15 10:09:50 发布