>>>I have made a config.fwp and I have added it to my project under others my config.fwp is directing temp files where to go, tmpfiles=c:\xxx\temp,editwork,sortwork,progwork. After I compile my program to a exe and I go and excute the exe and using the explorer my temp files are not there. They are still going to the windows\temp directory.
>
>>It may be that VFP is looking for config.
fpw, not config.
fwp.
>
>
>Then how do you set VFP6 to use the OS's temp directory (whatever that may be)?
Unfortunately, you can't without reading the value once and writing it into the CONFIG file. With the development version, some registry values are available to set (they're done through things like Tool-Options, the File Locations tab, and it is set at install time to whatever the Windows temporary directory is at install for the developer version ONLY.) If the Windows temporary file directory changes, you have to change the entry in the registry, or set it with the CONFIG.FPW.
CONFIG.FPW is static - it does not evaluate expressions or environment variables. I
strongly recommend that you read Chapter 3 of the VFP6 Programmer's Guide and pay attention to it in detail. The runtime engine
is not configured through the registry entry the way the developer product is, and the Developer product doesn't behave the way you think it does, either.
If you run under the runtime and not the development engine, the VFP startup behavior is different than you think it is.