|
@echo off
title copyright ydy win8专用
color fc
echo.
:start
echo.
echo ▁▂▃▄▅▆▇█Windows 8
echo ________________________________________________________________________________
echo.
echo 无线连接请按 1 有线连接请按 2 手动模式请按 3 自动模式请按 4
echo ________________________________________________________________________________
echo.
echo.
echo.
set var=
set /p var=.请于1,2,3,4中选择你要的操作\_
echo.
if "%var%"==" " goto ts
if "%var%"=="1" goto 1
if "%var%"=="2" goto 2
if "%var%"=="3" goto 3
if "%var%"=="4" goto 4
cls
:ts
mshta vbscript:msgbox("请正确操作,询问--QQ1121778043",64,"杨多玉工作室")(window.close)
cls
goto start
:1
netsh interface ip set address name="Wi-Fi" source=static addr=192.168.1.188 mask=255.255.255.0 gateway=192.168.1.1 1
netsh interface ip set dns name="Wi-Fi" source=static addr=202.96.209.5
cls
mshta vbscript:msgbox("操作成功",64,"杨多玉工作室")(window.close)
goto start
echo.
:2
netsh interface ip set address name="以太网" source=static addr=192.168.1.188 mask=255.255.255.0 gateway=192.168.1.1 1
netsh interface ip set dns name="以太网" source=static addr=202.96.209.5
cls & goto start
:3
echo.
echo.
set /p sd=.请根据自己的路由器型号指定网段\_
netsh interface ip set address name="以太网" source=static addr=192.168.%sd%.188 mask=255.255.255.0 gateway=192.168.%sd%.1 1
netsh interface ip set dns name="以太网" source=static addr=202.96.209.5
cls
mshta vbscript:msgbox("已成功配置本地连接!若是无线用户请继续,否则直接关闭DOS窗口",64,"杨多玉工作室")(window.close)
netsh interface ip set address name="Wi-Fi" source=static addr=192.168.%sd%.189 mask=255.255.255.0 gateway=192.168.%sd%.1 1
netsh interface ip set dns name="Wi-Fi" source=static addr=202.96.209.5
cls
mshta vbscript:msgbox("操作成功",64,"杨多玉工作室")(window.close)
cls
goto start
:4
netsh interface ip set address name="以太网" source=dhcp
netsh interface ip set dns name="以太网" source=static addr=202.96.209.5
cls
mshta vbscript:msgbox("已成功配置本地连接!若是无线用户请继续,否则直接关闭DOS窗口",64,"杨多玉工作室")(window.close)
netsh interface ip set address name="Wi-Fi" source=dhcp
netsh interface ip set dns name="Wi-Fi" source=static addr=202.96.209.5
cls
mshta vbscript:msgbox("操作成功",64,"杨多玉工作室")(window.close)
|
|