新建一个文本文档,复制以下代码,粘贴,重命名(爱是啥就是啥),以bat格式保存即可,基本上傻瓜操作。
@echo off
title 虚拟WiFi共享上网快速设置
echo.
echo ASF27出品
echo.
:kaishi
echo 虚拟WiFi共享上网快速设置(请以管理员权限运行)
echo ==============================================================
echo 1.开启虚拟WiFi共享上网 2.关闭虚拟WiFi共享上网
echo 3.更改虚拟WiFi网络设置 4.显示虚拟WiFi网络信息
echo 5.快速禁用本地连接 6.快速启用本地连接
echo 7.修复虚拟WiFi IP设置 8.开机自启动设置
echo ==============================================================
echo.
set type=x
set /p type=请选择(1-8):
if "%type%"=="1" goto:start
if "%type%"=="2" goto:stop
if "%type%"=="3" goto:seting
if "%type%"=="4" goto:info
if "%type%"=="5" goto:disabled
if "%type%"=="6" goto:enadbled
if "%type%"=="7" goto:repair
if "%type%"=="8" goto:autorun
goto:kaishi
:repair
echo.
echo 正在修复IP设置...
netsh interface ip set address "虚拟WiFi" static 192.168.137.1 255.255.255.0
netsh interface ip set dns "虚拟WiFi" static 192.168.137.1
echo 修复成功
echo.
goto:kaishi
:autorun
echo.
set type2=x
set /p type2=是否需要开机自启动(y/n)?
echo.
if "%type2%"=="y" goto:add
if "%type2%"=="n" goto:del
goto:autorun