Posted By

martinB on 11/12/09


Tagged

mac network hardware ethernet address dotnet


Versions (?)


Advertising

Submit Site


Get Ethernet network card (MAC) address


Published in: Maxscript 



Website Promotion
DIRECTORY
is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Taken from a scriptspot posting by 3d-kstudio.com

Expand | Embed | Plain Text
  1. NWIF = dotnetClass "System.Net.NetworkInformation.NetworkInterface"
  2. the_Mac_array = NWIF.GetAllNetworkInterfaces() -- this is an array of all the Networks
  3. the_PhysicalAddress_Array = #()
  4. for net in the_Mac_array where (net.NetworkInterfaceType.toString()) == "Ethernet" do append the_PhysicalAddress_Array ((net.GetPhysicalAddress()).toString())
  5. print the_PhysicalAddress_Array

Report this snippet 

You need to login to post a comment.

Download royalty free graphics