Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- :LOOPSTART
- REM ping google dns server: 8.8.8.8
- ping 8.8.8.8
- REM if ping fails write time to file
- IF ERRORLEVEL 1 echo %date% %time% >> noPingLog.txt
- REM wait 5 seconds
- ping -n 5 127.0.0.1 > nul
- GOTO LOOPSTART
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement