Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAC address
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00738756
Message ID:
00738826
Views:
12
>The latter seems like the correct MAC address. I am still kind of confused where the first so called MAC address comes from.

Since the code used to get the MAC address was GETENV(), I can tell you basically how that works. In the Novell login script, the Network Administrator put in a command to set an environment variable to the MAC address. Something like:

STATION_ID = P_STATION

or #SET STATION_ID = P_STATION

So if you were to shell out to a command prompt and type the word SET and hit Enter, you would see this environment variable and the MAC address. This works in Win9x, but I am guessing Win2k/XP/NT machines may not report the value of P_STATION correctly.

I use a free ActiveX control that I downloaded from the CompuServer VFP forum called MACADDRESS. I am sure it is still there. Everything else I have tried has never been 100% reliable except this one.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform