I am writing a webservice which takes in a MAC address, IP addres, or computername. I check the string and convert IP or Computername to the MAC address.
For IP address, I tried to spawn an EXE (NBTSTAT -a IP_Address) so I could parse the output.
For computername, I was going to ping to get the IP address and then do the above step.
However, calling an EXE from a webservice doesn't seem to be as easy as doing it from a console app.
i.e. The code executes but there is nothing being sent to standard output and no error.
What would be the best way to accomplish this?
Call an EXE from a webservice?
Or, is there something in the C# library that will allow me to turn a computername or an IP address into a MAC address?