Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specifiying a local directory in a multiuser app
Message
From
26/07/1999 10:22:42
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00245992
Message ID:
00246057
Views:
13
>I'm trying to avoid creating a special local directory on everyone's machine to house varying CONFIG.FPW files. I want the user to be able to run the .EXE from the network where I will mantain ONE CONFIG.FPW file. Then it would be nice if my app could determine a local directory to use (IE: \WINDOWS\TEMP, etc). The only problem is: Can the CONFIG.FPW variables, EDITWORK, PROGWORK, SORTWORK, TMPFILES be set dynamically during runtime?
>

No, they can only be set before the runtime environment is established. See the VFP on-line help; it spells this out in detail.

>Or do we HAVE TO make local directories for every machine and the matching shortcut to point them out?
>

That's another option. A third option would be to put a copy of the .EXE locally on each station in a directory, and run from that directory. By default, VFP will put its temp files in the starting directory.

Another option would be to build a CONFIG.FPW for each machine and put it somewhere on the system, and use the FOXPROWCFG environment variable to point to the local station's CONFIG file. You'd set the environment variable in AUTOEXEC.BAT under Win9x, and NT provides a mechanism to set default environment strings as well.

>My way would be so much cleaner...(but can I do it?)
>
>Thanx all!
>
>Joe
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform