Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Network domain or workgroup
Message
From
22/12/2008 16:54:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01369239
Message ID:
01369269
Views:
8
>>>What about
>>>
>>>
>>>loNetwork		= Createobject('WScript.Network')
>>>? loNetwork.UserDomain
>>>
>>
>>well.. huumm... sorry but, got same result as Getenv("USERDOMAIN")... hummm maybe we reach a path... I mean a way to figure out how to get it
>>
>>
>>weird... computarname property.. brings same UserDomain
>
>I would thought that any of those would've work if you were in a WorkGroup, without much hope, what happens if you try this one?
>
>
>loSysInfo		= CreateObject( "WinNTSystemInfo" )
>? "User Domain: ", loSysInfo.DomainName
>
Hehe... brought me the computer's username (claudio in my case)... ps: I'm under XPsp2

:~(
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform