Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- netsh interface show interface "LAN" | findstr "Enabled" > nul
- if errorlevel 1 (goto WIRED) else (goto WIRELESS)
- :WIRED
- netsh interface set interface "WLAN" DISABLED
- netsh interface set interface "LAN" ENABLED
- goto END
- :WIRELESS
- netsh interface set interface "LAN" DISABLED
- netsh interface set interface "WLAN" ENABLED
- :END
Add Comment
Please, Sign In to add comment