Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I obtain the user name?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Divers
Thread ID:
01123025
Message ID:
01123380
Vues:
14
>>>>Another alternative to get the real full name is:
>>>>
>>>>
>>>>oSysInfo = GetObject("WinNT://DOMAIN/USERNAME")
>>>>? oSysInfo.Fullname
>>>>
>>>>
>>>>Bye, Olaf.
>>>
>>>I got an error from this "Moniker can not open the file".
>>
>>Did you replace 'DOMAIN/USERNAME' with real values?
>
>Good question. No, I did not <g>
oNet = CreateObject("WScript.Network")
? oNet.UserName
? oNet.UserDomain
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform