Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting User Names
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00566514
Message ID:
00567040
Views:
15
>>How can I get the user name if I have captured the NT login
>>id and what other info is available?
>
>In addition to what Dave told, but easier, IMO, would be to use the WScript.Network object of the Windows Script Host.
LOCAL oNet AS "WScript.Network"
>oNet = CREATEOBJECT("WScript.Network")
>? oNet.UserName
Thanks George. I think Dave's solutions better addresses how
I'd get at user names other than the user who's currently
logged in. I am going to look a little closer at the network
object when I get some time (and reference material ;-)

   ...kt
Previous
Reply
Map
View

Click here to load this message in the networking platform