改變IP的批次檔? - Windows

Table of Contents

※ 引述《heres35 (heres)》之銘言:
: 請問有沒有可以直接改 IP & MASK & GATWAY 的批次檔指令?
: 例如:
: 192.168.1.99
: 255.255.255.0
: 192.168.1.254
: 換成
: 60.125.1.123
: 255.255.255.0
: 60.125.1.254
netsh interface ipv4 set address "Local Area connection"
static 60.125.1.123 255.255.255.0 60.125.1.254 1

以上兩行合成一行執行就可以了. 沒關UAC的可能需要在
以管理員權限執行的command prompt中執行.

--

--

All Comments

Damian avatarDamian2010-07-10
謝謝^^服用後非常滿意
Kyle avatarKyle2010-07-10
請問第二行後面的"1"代表的意思是啥密呀?
再請教如果要自動取得IP的話要怎麼寫呢?