開啟停止wifi熱點bat指令碼

2022-09-13 07:39:12 字數 1831 閱讀 7801

@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

offcolor 2title 啟停無線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

bat指令碼程式建立wifi熱點

echo off color 0b netsh wlan set hostednetwork mode allow ssid wenxi key 13141516 clsecho 輸入 y 或 y 鍵開啟無線網,其他任意鍵關閉無線網 set p input if input y goto open ...

windows DOS開啟wifi熱點

人生在世,總有有時候是在沒有任何wifi軟體去開啟wifi的環境下,這時,windows dos開啟wifi熱點成了唯一的選擇。其實這個也非常簡單的。利用 建立無線wifi 熱點開啟執行輸入cmd,輸入以下 netsh wlan set hostednetwork mode allow ssid c...

Win7開啟wifi熱點

win7自帶的功能,不過暫時被隱藏罷了 開啟方法 1,用管理員模式啟動命令列提示符,然後輸入 netsh wlan set hostednetwork mode allow ssid hotspot key passwordhere 2,用以下命令啟動基站功能 netsh wlan start ho...