Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TMPFILES
Message
From
18/08/1999 08:54:44
 
 
To
18/08/1999 08:21:42
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00254693
Message ID:
00254913
Views:
20
>>OK, the application is working pretty good, it's time to start optimizing it's performance.
>>
>>What are the standards for TMPFILES when working with VFP databases on a network.
>>
>>Our user base is widely varied.
>>
>>I'm assuming I want to use the windows temporary directory.
>>
>>Also what is the API call to get the windows temporary directory?
>>
>>And lastly, TMPFILES in the help file say's it takes a DRIVE:, does it take a path also? (C:\TEMP?)
>>
>>Any help appreciated.
>>
>>Eugene Henderson
>
>
>By default, VFP 6.0 will send temp files to the Windows temp directory.

No true, Craig. By default, VFP6 puts its temp files in the starting directory for the application. This can be overridden by setting the registry value through the Tool-Options-Files dialog for the development version, but this setting is ignored by the runtime, and can only be set from a CONFIG.FPW or its equivalent for the runtime environment. The development version will take the TMPFILES setting from a CONFIG.FPW in preference to the registry entry.

You can confirm this easily - in your development copy of VFP, open the Tools-Options dialog, go to the Files Tab, and modify the setting for Temporary Files to be empty. Set this as default, and press OK. Exit VFP, and start another copy. Print the value of SYS(2023), and it'll be the starting directory for the executable.

Obviously, if this isn't where you want it, change it back...
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
Next
Reply
Map
View

Click here to load this message in the networking platform