得到MAC地址的Shell命令。
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\Administrator>%comspec% /c nbtstat -A 192.168.1.22 > c
:mac.txt
D:\Documents and Settings\Administrator>%comspec% /c nbtstat -A 192.168.1.22
Local Area Connection:
Node IpAddress: [192.168.1.22] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
CPT-MRUAN <00> UNIQUE Registered
COMGI <00> GROUP Registered
CPT-MRUAN <20> UNIQUE Registered
MAC Address = 00-0C-F1-94-E6-19
D:\Documents and Settings\Administrator>dir > c:\tmp.txt