@echo off for /l %%i in (1, 1, %2) do echo %%i & ping -n 1 -l 1 -i %%i %1 | findstr からの & timeout /nobreak 1 > nul