批處理更改IP地址,網關,DNS
Echo off
Netsh interface IP Set Address "本地連接" Static 192.168.1.203 255.255.255.0 192.168.1.1 1
Netsh interface IP Set dns "本地連接" static 192.168.1.1 primary
Echo changed ip to office 192.168.1.203 press any key ,go on
Pause
@Echo off
Netsh interface IP Set Address "本地連接" Static 192.168.0.203 255.255.255.0 192.168.0.1 1
Netsh interface IP Set dns "本地連接" static 192.168.0.1 primary
Echo changed ip to home 192.168.0.203 press any key ,go on
Pause
posted on 2006-10-17 20:46 dreamstone 閱讀(5246) 評論(2) 編輯 收藏 所屬分類: 片段