Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- netsh wlan set autoconfig enabled=yes interface="Wi-Fi"
- :loop
- PING google.com | FIND "time=" > NUL
- echo waiting.....
- IF ERRORLEVEL 1 goto loop
- ECHO You have active connection to the Internet
- REM you can add your scripts to run after internet connection success
- netsh wlan set autoconfig enabled=no interface="Wi-Fi"
- pause
Advertisement
Add Comment
Please, Sign In to add comment