Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Temp files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00236884
Message ID:
00283242
Vues:
12
>>>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.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform