>I tried to use the GetEnv() function in a w2k system to get the program files folder and it worked fine.
>
>now when i try the same in a Win 98 system, it returns nothing.
>
>I tried to set an environment variable such as
>SET PGF=C:\PROGRAM FILES
>
>in DOS and tried the GetEnv function but still i get nothing returned.
>
>How do I get the program files folder using the GetEnv() function in windows 98 using VFP7?
>
>(I know that I can use API functions, but I think there should be a way in VFP!?!)
As far as I remember, under Win9x environment variables can be created only before loading the system, in autoexec.bat.
Précédent
Suivant
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