Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Username
Message
 
To
20/10/2006 07:40:15
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01163373
Message ID:
01163886
Views:
12
thanks for the reply stuart

>Hi
>
>> i am looking for a way to get the users name from windows,
>> so if they log into their machine in the morning using
>> "Bart Simpson" then i want to be able to retrieve this name.
>
>Are you after the user's full name? This should work on any w2k system (or earlier with the AD client installed)
>
>oWinNTSystemInfo = createobject("WinNTSystemInfo")
>oUser = getobject("WinNT://" + oWinNTSystemInfo.domainname + "/" + oWinNTSystemInfo.UserName + ",User")
>? oUser.FullName
Go raibh maith agat

~M
Previous
Reply
Map
View

Click here to load this message in the networking platform