style 管理员权限 face pre 本地 bat ont 掩码 管理
经常换地方上网,总改这些很麻烦,直接写三个bat,点一下就换了。需要管理员权限。之前用python的wmi写过,但是没起作用。
ip:10.10.41.15
子网掩码:255.255.255.0
网关:10.10.41.254
- netsh interface ip set addr本地连接static 10.10.41.15 255.255.255.0 10.10.41.254 1
从10.10.41.10一直改到10.10.41.240,每10秒改一次
- for / l % %i in (10, 1, 240) do netsh interface ip set addr本地连接static 10.10.41. % %i 255.255.255.0 10.10.41.254 1 & choice / t 10 / d y / n > nul
BAT脚本/Dos 改ip地址
style 管理员权限 face pre 本地 bat ont 掩码 管理
原文:http://www.cnblogs.com/noKing/p/7953764.html
来源: http://www.bubuko.com/infodetail-2414334.html