Skip to content

Instantly share code, notes, and snippets.

@rangalo
Created August 9, 2013 09:02
Show Gist options
  • Save rangalo/6192229 to your computer and use it in GitHub Desktop.
Save rangalo/6192229 to your computer and use it in GitHub Desktop.
@ECHO off
:AGAIN
echo "Checking internet connection ..."
ping "www.google.com" -n 1 -w 1000 >NUL
if errorlevel 1 goto AGAIN
echo "You are connected"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment