原帖由 如果云知道 于 2007-12-14 18:49 发表 
很新得论坛···百度上搜进来的····
进来是想知道怎么样的批处理可以将本地连接属性里的网关和DNS清零···呵呵···不知道行不行的呢?
学习ING :lol :lol
试试这个,全部设为0,作者:cn-fly
另: 提问请新开一帖。
| @echo off | | :: code by cn-fly @bbs.bathome.net | | SET mask=0.0.0.0 | | SET dns1=0.0.0.0 | | SET dns2=0.0.0.0 | | SET ip=0.0.0.0 | | SET gateway=0.0.0.0 | | netsh interface ip SET address "本地连接" static %ip% %mask% % gateway% 1 | | netsh interface ip SET dns "本地连接" static %dns1% primary | | netsh interface ip add dns "本地连接" %dns2% index=2 | | exitCOPY |
|