LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet card physical address in LabView?

Greetings. Couldn't find anything about this on the DevZone, or in the
recent newsgroup posts (or, indeed, from Microsoft 🙂 ), so now I'm
posting...

I need to get the physical address of the ethernet card in a host computer
on which my application is running (the MAC address, not the IP address)
under Windows NT/2000. I figure there must be a DLL call to do this, but
I'm completely at a loss as to what it would be.

Can anyone tell me where to find this function, and what the syntax is?
Furthermore, is it safe to use this function in my application, or is
Microsoft going to go behind my back and revise the function every service
pack and not tell me about it?
Thanks a ton, in advance.

Best regards,
Justin Goeres
jgoeres@ind
iosystems.com
Indio Systems, Inc.
Pleasanton, CA
0 Kudos
Message 1 of 3
(2,844 Views)
In Win2000 this command works (and probably others do as well):

ipconfig /all | more

So you'd need the System Exec VI, and might need to preface the string
with command.com:

command.com ipconfig /all | more

Mark
0 Kudos
Message 2 of 3
(2,844 Views)
The way I get this information is from the DOS command ipconfig /all. I've only used it on NT so I can't speak for Win 2000. Good luck.
0 Kudos
Message 3 of 3
(2,844 Views)