Search notes:

Script: wlan.bat

wlan.bat is a batch file for cmd.exe that allows to turn on and off the wlan.
@rem
@rem    connect or disconnect wlan
@rem

@if "%1" equ "" (
  goto Usage
)

@if "%1" equ "on" (

  @if "%2" equ "" (
    goto Usage
  )

  @netsh wlan connect "%2"

  @exit /b
)

@if "%1" equ "off" (
  @netsh wlan disconnect
  @exit /b
)

:Usage
@echo.
@echo   enter
@echo     wlan on   wlan-name
@echo   or
@echo     wlan off
@echo.
Github repository scripts-and-utilities, path: /wlan.bat

See also

netsh wlan …
new-wlan.bat
Script: wifi-start
Scripts
WLAN

Index