Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SYS(0) returns the machine name and the user name in Nov
Message
De
24/10/1997 01:15:36
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
23/10/1997 12:07:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00053929
Message ID:
00056471
Vues:
40
>>>>>All I want to do is to return the user name. Any ideas?
>>>>
>>>>i think sys(0) returns the windows user and not the novell user.
>>>>if the windows user is what you want, can you just parse it out of the string sys(0) returns.
>>>>there is also an api call ( i think it's GetUserName ) that will return just the windows user.
>>>>
>>>>if you want the novell user, i know there is something in the files section ( or maybe kb ) here on ut.
>>>>i know i saw it but have yet to have a need or time to give it a try.
>>>
>>>thanks Gray .. :)
>>sys(0) will return the novell machine_name if it is set up in the NET.CFG (Not 100% sure about this, it has been a while, but I am sure that you can return a novell id of somekind)
>
>thanks Larry for the information :)))
I checked, and what I had done was add the line
MACHINE NAME="MyName"
in the user's login script.
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform