Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 programming questions need help
Message
 
To
02/04/2001 22:13:11
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00491161
Message ID:
00491279
Views:
9
Hi Jim,

1) Use GETENV() as the others suggest
2) For a login, I generally go with a dialog with a user name and a password. The user name can be defaulted from the SYS(0) function, besure to use the passwordchar property so the entered password is not visible. If you use generic passwords they can be hardcoded, if you use individually settable passwords you can look them up in a table. In this case I would recommend at least a simple encryption scheme so people cannot browse the table to get a usable password.

Bob

>hi all,
>
>I'm currently writing a program and have the following questions:
>
>(1) How can I read the operating system environment settings? I mean those
>setting in autoexec.bat,
>such as temp=c:\tmp, path=c:\;c:\windows, or last drive=z ... etc.
>
>(2) I want to make my program passwrod protected, no need login name, just a
>password is enough. But I have no idea where and how to start, would you pls
>give me some guide lines or suggested readings?
>
>Thank you very much for your attention, best regards,
>
>jimi
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Previous
Reply
Map
View

Click here to load this message in the networking platform