|
- @echo off
- goto menu
- :menu
- echo ---------------------------------------------------------------
- echo **************************1.打开无线 **************************
- echo **************************2.关闭无线 **************************
- echo ************************3.显示无线状况 ************************
- echo ---------------------------------------------------------------
- set /p input=-^> 请选择:
- cls
- if "%input%"== "1" goto wirelessopen
- if "%input%"== "2" goto wirelessclose
- if "%input%"== "3" goto wirelessview
- :wirelessopen
- netsh wlan set hostednetwork mode=allow ssid=xxxx key=xxxxxxxx
- netsh wlan start hostednetwork
- goto menu
- :wirelessclose
- Netsh WLAN stop hostednetwork
- goto menu
- :wirelessview
- Netsh WLAN show hostednetwork
- goto menu
复制代码
|
|