码迷,mamicode.com
首页 > 其他好文 > 详细

开启停止wifi热点bat脚本

时间:2016-05-16 23:14:41      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:

@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

 

开启停止wifi热点bat脚本

标签:

原文地址:http://www.cnblogs.com/chongchong88/p/5499846.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!