Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Config.fpw settings
Message
 
To
13/06/1998 14:41:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00107888
Message ID:
00108709
Views:
39
>I have a need to set the editwork, progwork, sortwork, and tmpfiles to the local machines Windows directory (ie GetEnv('WINDIR')). I want to do this so I will not have to force the user to set up a local directory on their computer (ie C: drive). I had hoped to do this in main.prg, but that seems to think that editwork, as a example, is just a variable and tosses the variable away when the function is complete. I tried to do this in the config.fpw file (ie EDITWORK = GetEnv('WINDIR')), but it did not understand that and ignored it. It seems that SET is not an option here either.
>
>I have a multiuser product and it would be great if I could use the Windows directory or Windows/Temp directory to place the Visual FoxPro work files.
>
>Is there a way to set editwork, progwork, sortwork, tmpfiles with code, and if not can this be set dynamicly in config.fpw so I do not have to use a different config.fpw file for each user of my product.
>
>Please help. Thanks.
>
>PS This is my first message on the thread.
>
>knorton@daforsys.com

We build our own config.fpw when the user runs our setup program. The program scans the machine, creates directories as needed, updates the registry and builds a config.fpw that is taylored to their machine and environment. Hope this helps.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform