Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using GetEnv to get the program files folder
Message
 
À
26/02/2003 06:17:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00757983
Message ID:
00758012
Vues:
20
>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
Fil
Voir

Click here to load this message in the networking platform