Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the user's name from NT?
Message
De
09/05/2000 18:46:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00367890
Message ID:
00367894
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform