Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WScript.Network object
Message
De
08/03/2002 14:20:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00628102
Message ID:
00630345
Vues:
23
Doru,

What userlist in Win98 are you referring to? I didn't think WinXX would allow you to log in to the local machine with one username, and into a remote machine with another...

>We are using the WSH Network object to retrieve the name of the currently logged-on user:
>
loNet = CREATEOBJECT("WScript.Network")
>lcEmpID = upper(loNet.UserName)
>On a laptop running Win 98, in the userlist, there is a user 'Abc' and a user 'Xyz'. If you log into Windows as 'Abc' and then log into the network as Xyz' then lcEmpID = 'Abc'.
>I thought WScript.Network will return the user logged on to the network, not the user logged on to Windows. Anybody knows what am I missing?
>TIA
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform