[再次向Tiger5392求助]如何用VF识别网卡的物理序列号?
Tiger5392你好!你给我的用VF识别硬盘物理序列号,非常的好用,由于本人笨拙代码看不明白,所以如何识别网卡的物理序列号还是不会,再次向你求助.
oWMI=CREATEOBJECT("WbemScripting.SWbemLocator")
oLocal=oWMI.ConnectServer(".", "root\cimv2")
oHARDWARE=oLocal.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration Where IPEnabled=1")
FOR EACH object1 IN oHARDWARE
LcMAC=object1.Properties_('MACAddress').VALUE
EXIT
ENDFOR
?'网卡 MAC 地址:',LcMAC
RELEASE oWMI
RETURN