Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get NetWare login name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00067154
Message ID:
00067189
Vues:
30
It doesn't work. Both GetUserName and SYS(0) return the Windows User Name which by coincidence can be the same as the login name but, as I've found the hard way, doesn't have to be. The way I handle this is to have the NetWare login script create an environment variable called USER containing the login name. I then use that variable with the GETENV() funtion in VFP.

>Thanks, Mark. Now, can anyone confirm for me that this works for a NetWare workstation (I only have an NT LAN available for testing.
>
>TIA,
>
>Josh
>
>>>Can anyone tell me what SYS(0) returns on a NetWare LAN (using VFP 5.0). On an NT network it returns:
>>>
>>>MACHINENAME # UserName
>>>
>>>If it doesn't return the NetWare user name, any ideas on an easy way to get it?
>>>
>>>Thanks,
>>>
>>>Josh Weiss
>>
>>Try Knowledge Base (Red Dice), FAQ, Win32. There is infor on how the GetUserName.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform