lcenv = getenv("path")
will get you the path setting. Just change the parameter to the environment setting you want to get the value for.
As far as passwords. You basically need to create a vfp form and use a table to seek the password or what ever login value you want to check and validate it. I don't know how much security you feel you need but you could do as much or as little as you feel necessary here.
Hope this helps.
Tommy
>(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?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement