創建虛擬wifi熱點共享上網

@echo off
:again
cls
setlocal EnableDelayedExpansion
color 0b
set one=
set two=
set three=
set name=
set password=
echo.
echo -----------------創建虛擬wifi熱點共享上網--------------------
echo.
echo      1:檢查無線網卡是否支持承載
echo      2:創建/修改虛擬無線局域網環境
echo      3:關閉虛擬無線局域網
echo      4:開啓虛擬無線局域網
echo      0:關閉窗口
echo.
echo -------------------------------------------------------------------------------
set /p num=請您選擇操做類型(按回車確認):
if "!num!"=="1" (
netsh wlan show drivers
echo 按任意鍵返回主菜單
pause
goto again
)
if "!num!"=="2" (
cls
echo.
echo -----------------------------創建虛擬無線局域網環境----------------------------
set /p name=輸入建立的虛擬無線局域網名稱:
set /p password=輸入建立的虛擬無線局域網鏈接密碼^(至少大於8位^):


netsh wlan set hostednetwork mode=allow ssid=!name! key=!password!
pause
goto again
)


if "!num!"=="3" (
echo.
netsh wlan stop hostednetwork
pause
goto again
)
if "!num!"=="4" (
echo.
netsh wlan start hostednetwork
pause
goto again
)


if "!num!"=="0"(
exit
)
相關文章
相關標籤/搜索