Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get User Name from the OS
Message
 
To
18/10/1998 18:43:30
Cheryl Qualset
Qualset Computer Consulting
Davis, California, United States
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00147628
Message ID:
00148023
Views:
41
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform