@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