Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using GetEnv to get the program files folder
Message
 
To
26/02/2003 06:17:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00757983
Message ID:
00758012
Views:
17
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform