Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I obtain the user name?
Message
From
18/05/2006 15:06:51
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Miscellaneous
Thread ID:
01123025
Message ID:
01123362
Views:
13
>>>Another alternative to get the real full name is:
>>>
>>>
>>>oSysInfo = GetObject("WinNT://DOMAIN/USERNAME")
>>>? oSysInfo.Fullname
>>>
>>>
>>>Bye, Olaf.
>>
>>Or just:
>>
>>
cUserName = GETENV("username")
>
>It's still not a full name of the user, but a login name.

I see that's what he's now asking for, but that's not the original question (or title).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform