标签:io os strong for sp cti on c line
ManagementClass mc;
mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
//if (mo["IPEnabled"].ToString() == "True")
// Console.WriteLine( mo["MacAddress"].ToString());
if (mo["IPEnabled"].ToString() == "True")
Console.WriteLine(mo["MacAddress"].ToString());
}
Console.Read();
标签:io os strong for sp cti on c line
原文地址:http://www.cnblogs.com/ChineseMoonGod/p/3979164.html