Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network domain or workgroup
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01369239
Message ID:
01369266
Vues:
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
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform