Laptop, Windows Create a virtual wifi hotspot to share the Internet

@echo off
:again
cls
setlocal EnableDelayedExpansion
color 0b
set one=
set two=
set three=
set name=
set password=
echo.
echo -----------------create virtual wifi hotspot sharing Internet access --------------------
echo.
echo 1: Check whether the wireless network card supports
echo 2: Create/modify the virtual wireless LAN environment
echo 3: Close the virtual wireless LAN
echo 4: Open the virtual wireless LAN
echo 0: Close the window
echo.
echo ------------------------------------ -------------------------------------------
set /p num=please Select the operation type (press Enter to confirm):
if "!num!"=="1" (
netsh wlan show drivers
echo press any key to return to the main menu
pause
goto again
)
if "!num!"=="2" (
cls
echo.
echo -----------------------------Create a virtual wireless LAN environment ----------------------------
set /p name=Enter the created virtual wireless LAN name:
set /p password=Enter the created virtual WLAN Wi-Fi connection password^ (at least more than 8 digits^):


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
)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326036064&siteId=291194637