HOME       LIST

【VB】Network AdapterのMacAddress取得

Network AdapterのMacAddress取得


Dim obj, objs
Dim MACAddress As String
Set objs = GetObject("winmgmts:").ExecQuery("SELECT MACAddress FROM Win32_NetworkAdapter WHERE MACAddress Is Not NULL")

For Each obj In objs
    MACAddress = obj.MACAddress
Next obj

以前コンテンツ:【VB】PUT GET コマンドの基本コード



Copyright(c) 2007-2024 dojeun.com All Rights Reserved.

Valid XHTML 1.0 Transitional