开启停止wifi热点bat脚本
Posted chongchong88
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了开启停止wifi热点bat脚本相关的知识,希望对你有一定的参考价值。
@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脚本的主要内容,如果未能解决你的问题,请参考以下文章