using System
using System
public class test
{
public test
{}
public static string GetCustomerMac(string IP) //para IP is the clients IP
{
string dirResults="";
ProcessStartInfo psi = new ProcessStartInfo();
Process proc = new Process();
psi
psi
psi
psi
psi
proc = Process
dirResults = proc
proc
dirResults=dirResults
Regex reg=new Regex("Mac[ ]{
Match mc=reg
if(mc
{
return mc
}
else
{
reg=new Regex("Host not found"
mc=reg
if(mc
{
return "Host not found!";
}
else
{
return "";
}
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/14302.html