Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :START
- ECHO Checking connection, please wait...
- ::Check for connectivity using PING test.
- PING -n 1 www.google.com|find "Reply from " >NUL
- IF ERRORLEVEL 1 goto :FAILURE
- TIMEOUT 900
- :: If PING successful, then loop.
- GOTO :START
- ::If PING fails, then shutdown after giving the reason.
- :FAILURE
- echo " Net Gone!! Shutting Down PC!"
- SHUTDOWN /s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement