Guest User

Untitled

a guest
Nov 16th, 2021
7,994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @ECHO OFF
  2. netsh wlan set autoconfig enabled=yes interface="Wi-Fi"
  3. :loop
  4. PING google.com | FIND "time=" > NUL
  5. echo waiting.....
  6. IF ERRORLEVEL 1 goto loop
  7.  
  8. ECHO You have active connection to the Internet
  9.  
  10. REM you can add your scripts to run after internet connection success
  11. netsh wlan set autoconfig enabled=no interface="Wi-Fi"
  12. pause
Advertisement
Add Comment
Please, Sign In to add comment