@echo off:againclssetlocal EnableDelayedExpansioncolor 0bset 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 driversecho 按任意键返回主菜单pausegoto again)if "!num!"=="2" (clsecho.echo -----------------------------建立虚拟无线局域网环境----------------------------set /p name=输入创建的虚拟无线局域网名称:set /p password=输入创建的虚拟无线局域网连接密码^(至少大于8位^):netsh wlan set hostednetwork mode=allow ssid=!name! key=!password!pausegoto again)if "!num!"=="3" (echo.netsh wlan stop hostednetworkpausegoto again)if "!num!"=="4" (echo.netsh wlan start hostednetworkpausegoto again)if "!num!"=="0"(exit)