请问如何用批处理在TCP/IP的高级里面再多加一个IP?

不是修改
而是在 TCP/IP的 高级 TCP/IP设置里面添加或删除IP的批处理怎么写

比如我需要先清空里面的IP地址 写入新的IP地址和子网掩码批处理怎么写
过路朋友帮帮忙谢谢了

for /f %%a in ('wmic nicconfig where^(ipenabled^=true^) get index^|findstr [0-99]') do set i=%%a
wmic nicconfig where(index=%i%) call enablestatic ("192.168.91.61","172.18.0.2"), ("255.255.255.0","255.255.0.0")
wmic nicconfig where(index=%i%) call setgateways ("192.168.91.1","172.18.0.1"),(1,2)
温馨提示:答案为网友推荐,仅供参考
相似回答