Created
January 27, 2020 17:35
-
-
Save FloPinguin/061224e7d10124e16229c4ed112aa1d7 to your computer and use it in GitHub Desktop.
Only run .bat after a internet connection is established
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:ping | |
timeout 15 | |
set target=www.google.com | |
ping %target% -n 1 | find "TTL=" | |
if errorlevel==1 goto ping | |
DO SOMETHING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment