@echo off set i=192.168.1.195 set m=255.255.255.0 set g=192.168.1.254 netsh interface ip set address name="本地连接" source=static addr=%i% mask=%m% gateway=%g% 1 set dns=192.168.1.254
如上的一段脚本,保存为ip.bat,然后即可设置
ip address: 192.168.1.195, mask: 255.255.255.0 gateway: 192.168.1.254 dns: 192.168.1.254
如果想让本地连接自动获取ip的话,那就下面的脚本:
@echo off netsh interface ip set address name="本地连接" source=dhcp
文章的脚注信息由WordPress的wp-posturl插件自动生成
微信扫一扫,打赏作者吧~![[分享]批处理一键备份脚本](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/08/使用说明-729x1024.jpg&w=280&h=210&zc=1)


