Board logo

标题: 【求助】自动填写IP地址的批处理 [打印本页]

作者: eech     时间: 2006-11-11 03:56    标题: 【求助】自动填写IP地址的批处理
192.168.1.3 255.255.255.0 192.168.1.1 202.102.199.68 202.102.192.68 可以自动填写IP地址.只要双击一下.即可自动完成IP的填写 如下图

作者: zerostudy     时间: 2006-11-11 05:43
netsh

作者: ccwan     时间: 2006-11-11 05:52
@echo off netsh interface ip set address name="本地连接" source=static addr=192.168.1.3 mask=255.255.255.0 ::设置本地连接的ip地址为:192.168.1.3,子网掩码为:255.255.255.0 netsh interface ip set address name="本地连接" gateway=192.168.1.1 gwmetric=1 ::设置网关 netsh interface ip set dns name="本地连接" source=static addr=202.102.199.68 register=PRIMARY ::设置主dns netsh interface ip add dns name="本地连接" addr=202.102.192.68 ::设置备份dns netsh interface ip set wins name="本地连接" source=static addr=none ::设置wins [ Last edited by ccwan on 2006-11-11 at 05:53 AM ]

作者: eech     时间: 2006-11-11 06:26
netsh -c interface ip set address name="本地连接" source=static addr=192.168.1.3 mask=255.255.255.0 netsh -c interface ip set address name="本地连接" gateway=192.168.1.1 gwmetric=0 netsh -c interface ip set dns name="本地连接" source=static addr=202.102.199.68 register=PRIMARY netsh -c interface ip add dns name="本地连接" addr=202.102.192.68 这是另一个朋友给写的.都可以.谢谢你了.朋友

作者: LK     时间: 2006-11-16 10:42
两个都可以,后面的似处理的快些...

作者: sunxh     时间: 2009-9-12 13:41
后面的似处理的快些...

作者: yuanye002     时间: 2009-9-13 11:59
后面用了-c参数,没有win设置 应该速度区别不大吧