开关WIFI脚本

title wifi管理
color A
@echo on
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo 1、启用并设定虚拟WiFi网卡;
@echo 2、开启无线网络;
@echo 3、关闭无线网络;
@echo 4、显示无线网络信息;
@echo 5、退出;
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo off
set /p input=请输入数字选择需要进行的操作:
if "%input%"=="1" goto A
if "%input%"=="2" goto B
if "%input%"=="3" goto C
if "%input%"=="4" goto D
if "%input%"=="5" goto E
pause
@echo on
exit
:A
@echo\
@echo 1、启用并设定虚拟WiFi网卡:
netsh wlan set hostednetwork mode=allow ssid=myssid key=mypassword
goto Q
:B
@echo\
@echo 2、开启无线网络:
netsh wlan start hostednetwork
goto Q
:C
@echo\
@echo 3、关闭无线网络:
netsh wlan stop hostednetwork
goto Q
:D
@echo\
@echo 4、显示无线网络信息:
netsh wlan show hostednetwork
goto Q
:E
Exit
:Q
@echo on
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo 1、启用并设定虚拟WiFi网卡;
@echo 2、开启无线网络;
@echo 3、关闭无线网络;
@echo 4、显示无线网络信息;
@echo 5、退出;
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo off
set /p input=请输入数字选择需要进行的操作:
if "%input%"=="1" goto A
if "%input%"=="2" goto B
if "%input%"=="3" goto C
if "%input%"=="4" goto D
if "%input%"=="5" goto E
pause
@echo on
exit
title wifi管理
color A
@echo on
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo 、启用并设定虚拟WiFi网卡;
@echo 、开启无线网络;
@echo 、关闭无线网络;
@echo 、显示无线网络信息;
@echo 、退出;
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo off
set /p input=请输入数字选择需要进行的操作:
if "%input%"=="" goto A
if "%input%"=="" goto B
if "%input%"=="" goto C
if "%input%"=="" goto D
if "%input%"=="" goto E
pause
@echo on
exit
:A
@echo\
@echo 、启用并设定虚拟WiFi网卡:
netsh wlan set hostednetwork mode=allow ssid=myssid key=mypassword
goto Q
:B
@echo\
@echo 、开启无线网络:
netsh wlan start hostednetwork
goto Q
:C
@echo\
@echo 、关闭无线网络:
netsh wlan stop hostednetwork
goto Q
:D
@echo\
@echo 、显示无线网络信息:
netsh wlan show hostednetwork
goto Q
:E
Exit
:Q
@echo on
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo 、启用并设定虚拟WiFi网卡;
@echo 、开启无线网络;
@echo 、关闭无线网络;
@echo 、显示无线网络信息;
@echo 、退出;
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo off
set /p input=请输入数字选择需要进行的操作:
if "%input%"=="" goto A
if "%input%"=="" goto B
if "%input%"=="" goto C
if "%input%"=="" goto D
if "%input%"=="" goto E
pause
@echo on
exit

 
上一篇:SSH远程登录密码尝试


下一篇:Python中byte与str