Files
windows-scripts/InternetCheck.bat
2023-03-05 21:08:50 -06:00

10 lines
362 B
Batchfile

@echo off
set Address=google.com
:Loop
PING -n 5 127.0.0.1>nul
echo Pinging %Address%
%SystemRoot%\system32\ping.exe -n 1 %Address% | %SystemRoot%\system32\find.exe "TTL=" > NUL
if %ERRORLEVEL% EQU 0 goto :Loop
echo Trace route %Address% at %date% %time% >> D:\Scripts\InternetCheck\tracert.log
tracert %Address% >> D:\Scripts\InternetCheck\tracert.log
goto Loop