1.创建一个txt文件,并把贴入如下代码:
把网卡设置ip为192.168.123.10 掩码255.255.255.0 网关192.168.123.1
@echo off %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit cd /d "%~dp0" netsh interface ip set address "ethernet" static 192.168.123.10 255.255.255.0 192.168.123.1
把网卡设置为动态获取ip @echo off %1 m...
阅读全文