Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the user's name from NT?
Message
From
09/05/2000 18:46:58
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00367890
Message ID:
00367894
Views:
14
>How can i get the user's name (login name) from Windows NT usign a Activex Control?

You can get this information by parsing the return from SYS(0) - the user name is on the right side of the # character in the string. You can use the Wscript.Network object from the WSH - it has a UserName property. There are also mechanisms available in the Win32 API to get any of several possible userids.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform