*.dat 文件自动设置ip地址
1.无线网络
使用指定ip
@echo off
netsh inte易做图ce ip set address "无线网络连接" static 192.168.0.111 255.255.255.0 192.168.0.1
netsh inte易做图ce ip set dns "无线网络连接" static 202.106.0.20 primary
使用自动ip
@echo off
netsh inte易做图ce ip set address "无线网络连接" source=dhcp
netsh inte易做图ce ip set dns "无线网络连接" source=dhcp
2.有线网络
使用指定ip
@echo off
netsh inte易做图ce ip set address "本地连接" static 192.168.0.175 255.255.255.0 192.168.0.1
netsh inte易做图ce ip set dns "本地连接" static 202.106.0.20 primary
使用自动ip
@echo off
netsh inte易做图ce ip set address "本地连接" source=dhcp
netsh inte易做图ce ip set dns "本地连接" source=dhcp
补充:综合编程 , 其他综合 ,