Code: Select all
@echo off
for %%a in (600 650 700 750 800 850 900 950 1000 1050 1100 1200 1300 1400 1500 1700 1900 2100 2300 2600 2900 3100) do (
timethis ping -n 1 -w %%a 1.1.1.1 |findstr /i "command elapsed">>log.txt
)
pause
Code: Select all
ping -n 1 -w 600 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.131
ping -n 1 -w 650 1.1.1.1 TimeThis : Elapsed Time : 00:00:00.961
ping -n 1 -w 700 1.1.1.1 TimeThis : Elapsed Time : 00:00:00.991
ping -n 1 -w 750 1.1.1.1 TimeThis : Elapsed Time : 00:00:00.991
ping -n 1 -w 800 1.1.1.1 TimeThis : Elapsed Time : 00:00:00.981
ping -n 1 -w 850 1.1.1.1 TimeThis : Elapsed Time : 00:00:00.991
ping -n 1 -w 900 1.1.1.1 TimeThis : Elapsed Time : 00:00:00.991
ping -n 1 -w 950 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.492
ping -n 1 -w 1000 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.482
ping -n 1 -w 1050 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.492
ping -n 1 -w 1100 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.492
ping -n 1 -w 1200 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.492
ping -n 1 -w 1300 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.492
ping -n 1 -w 1400 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.492
ping -n 1 -w 1500 1.1.1.1 TimeThis : Elapsed Time : 00:00:01.992
ping -n 1 -w 1700 1.1.1.1 TimeThis : Elapsed Time : 00:00:02.002
ping -n 1 -w 1900 1.1.1.1 TimeThis : Elapsed Time : 00:00:02.002
ping -n 1 -w 2100 1.1.1.1 TimeThis : Elapsed Time : 00:00:02.493
ping -n 1 -w 2300 1.1.1.1 TimeThis : Elapsed Time : 00:00:02.493
ping -n 1 -w 2600 1.1.1.1 TimeThis : Elapsed Time : 00:00:02.994
ping -n 1 -w 2900 1.1.1.1 TimeThis : Elapsed Time : 00:00:02.994
ping -n 1 -w 3100 1.1.1.1 TimeThis : Elapsed Time : 00:00:03.495