Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get User Name from the OS
Message
 
À
18/10/1998 18:43:30
Cheryl Qualset
Qualset Computer Consulting
Davis, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00147628
Message ID:
00148023
Vues:
42
>NT has a default environment variable called username.
>I use GETENV('username')
>Also, our Netware login script creates a similar environment variable for DOS/Win/95 users.
>
>This has some security issues. But in 95, the user has to run the app from a batch file that changes the environment variable and then runs the app because just changing an envar in a DOS window doesn't affect anything but that DOS session.
>
>Cheryl Qualset

That's one reason to run the net commands, you can redirect output to a file, then parse it, without regard as to environment vars.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform