這些天總是帶著筆記本在家/單位/客戶等等幾個地方跑來跑去的
界面如下
其實利用vb修改ip地址是比較容易的
Dim tempBool As Boolean strComputer =
Set objWMIServiceGL = GetObject(
Set colNetAdaptersGL = objWMIServiceGL
For Each obj In objs
getMACAddress = getMACAddress & obj
Next obj End Function
然後根據所找到的各個網卡的進行信息(IP
Set objWMIService = GetObject(
Set objSWbemObjectSet = objSWbemServices
For Each objNetAdapter In colNetAdapters sip = objNetAdapter
If Option
objNetAdapter
errDNS = objNetAdapter
Else strIPAddress = Array(Text
strSubnetMask = Array(Text
strGateway = Array(Text
strGatewaymetric = Array(
StrDns = Array(Text
errEnable = objNetAdapter
errGateways = objNetAdapter
errDNS = objNetAdapter
End If Next End Function
From:http://tw.wingwit.com/Article/program/net/201311/13565.html