get MAC adress by maxscript
hello
i found a function get mac adress but now it not work , i dont know why , can you fix it or have another way to get mac adress ?, thank you for your help
NWIF = dotnetClass "System.Net.NetworkInformation.NetworkInterface"
the_Mac_array = NWIF.GetAllNetworkInterfaces() -- this is an array of all the Networks
the_PhysicalAddress_Array = #()
for net in the_Mac_array where (net.NetworkInterfaceType.toString()) == "Ethernet" do append the_PhysicalAddress_Array ((net.GetPhysicalAddress()).toString())
print the_PhysicalAddress_Array
Comments
.
i can do it , thank you very much :)
`
or even in one line:
`
Hi,
Try this one: