标签:
@echo off
color 2
title 启停无线WIFI
echo 启动WIFI=======》按1键
echo 关闭WIFI=======》按2键
echo 创建WIFI=======》按3键
echo 删除WIFI=======》按4键
set /p n=
if /i "%n%" equ "1" goto start
if /i "%n%" equ "2" goto stop
if /i "%n%" equ "3" goto create
if /i "%n%" equ "4" goto delete
:start
netsh wlan start hostednetwork
echo 开启成功!
goto end
:stop
netsh wlan stop hostednetwork
echo 停止成功!
goto end
:create
netsh wlan set hostednetwork mode=allow ssid=sun key=12345678
echo 已创建ssid=sun key=12345678的无线WIFI
goto end
:delete
netsh wlan set hostednetwork mode=disallow
echo 删除成功!
goto end
@echo off color 2 title 启停无线WIFI echo 启动WIFI=======》按1键 echo 关闭WIFI=======》按2键 echo 创建WIFI=======》按3键 echo 删除WIFI=======》按4键 set /p n= if /i "%n%" equ "1" goto start if /i "%n%" equ "2" goto stop if /i "%n%" equ "3" goto create if /i "%n%" equ "4" goto delete :start netsh wlan start hostednetwork echo 开启成功! goto end :stop netsh wlan stop hostednetwork echo 停止成功! goto end :create netsh wlan set hostednetwork mode=allow ssid=sun key=12345678 echo 已创建ssid=sun key=12345678的无线WIFI goto end :delete netsh wlan set hostednetwork mode=disallow echo 删除成功! goto end
标签:
原文地址:http://www.cnblogs.com/chongchong88/p/5499846.html