Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting User Names
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00566514
Message ID:
00567040
Vues:
17
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform