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:
00738840
Views:
16
>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

Yes that is exactly how we set the environment variable.
Do you know for a fact that p_station doesn't work under W2K?


>
>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.

I'll check that ActiveX out. Thanks.

Do you know how to set an environment variable at runtime?
set myvar = einar works but when I open a new dos command prompt it is not in the list after I issue the set command.

Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform