Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How get MAC (ethernet card) number
Message
De
15/07/1999 18:15:13
 
 
À
15/07/1999 13:45:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00241860
Message ID:
00242042
Vues:
31
>Can anybody show me how to :-
>
>1. find the ethernet card number (MAC) of workstation you are running?
>

Look at either the MS Winsock control, or dump the output of the command line IPCONFIG to a texrt file and parse it.

>2. given a IP number of a machine within a LAN, find the ethernet card number(MAC) of that machine?
>

The Win2 has API calls to do this; they aren't completely trivial to implement. You can buy the functionality in any of several ActiveX products, and it might be available as well from Rick Strahl's wwIPSTUFF.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform