PING Scripts

PING-Addresses.bat
@echo off
:start
cls
 
set mypath=%cd%
FOR /F %%i IN (%mypath%\IPaddresses.conf) DO (
ping %%i -n 1 -w 2000 | find "TTL" || echo %%i is DOWN
)
 
pause
goto start
IPaddresses.conf
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
start-ping-test.cmd
start "ping-test" ping 1.1.1.1 -t
start "ping-test" ping 8.8.8.8 -t
stop-ping-test.cmd
taskkill /F /FI "WINDOWTITLE eq ping-test"
  • tech-notes/scripts/ping.txt
  • Last modified: 2024/03/11 11:34
  • by gerardorourke