>Here I go again. In gool old DOS on Novell I could get the P_STATION number, the ethernet card address, using any number of different librarys. We use this to track errors and all kinds of things. How can I get this number in VFP? Is it also possible to get the name the user used to log into the network? Again this was easy in the old days.
The user name is easy - there are API calls (WNetGetUser is one, there are lots of others), the Wscript.Network object, and things like the output from IPCONFIG can provide the detail.
There are a number of APIs which can get the NIC address - you might want to take a look at Rick Strahl's wwIPStuff library. Mabry also sells a set of ActiveX controls for dealing with network isues.