Placement of Temporary Files (TMPFILES)

Last reviewed: April 17, 1995
Article ID: Q87805
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a

SUMMARY

Microsoft FoxPro for MS-DOS creates temporary files in the current working directory unless the CONFIG.FP configuration file contains a TMPFILES statement to specifically designate an alternate location for the files. The syntax of the TMPFILES statement is as follows:

   TMPFILES=<drive:>

MORE INFORMATION

FoxPro creates temporary files in the process of editing, indexing, and sorting data, and for a critical internal file called the "program cache." The TMPFILES entry in the CONFIG.FP specifies the drive on which the EDITWORK, SORTWORK, and PROGWORK files are stored if none of the other options specify locations for these files. Specifying locations for these files can be useful to optimize performance in a FoxPro/LAN environment.

Editor sessions can momentarily create a complete copy of the file being edited on the TMPFILES drive (when it creates .BAK files). Indexing and sorting operations for large databases can create large files on the TMPFILES drive. Although the program cache is not especially large, it is a critical file. Running out of disk space while attempting to extend the program cache is a fatal error.

RAM disks are generally quite limited in size. It is usually not a good idea to use one for the TMPFILES drive. Generally, try to ensure that plenty of space is available on the TMPFILES drive.

There are two basic situations where it is useful to place the TMPFILES directory somewhere other than the default location:

  1. If the system has two or more hard disks installed, additional indexing and sorting speed is available if the TMPFILES directory is set to a drive other than the drive on which most of the data resides. This benefit is due to the efficiency gained by having two independent, simultaneously active sets of disk access hardware.

  2. If FoxPro is running from a network, additional speed is available if TMPFILES is assigned to a local hard drive.

REFERENCES

"Microsoft FoxPro Developer's Guide," pages D14-11 through D14-13, "Special CONFIG Items"


Additional reference words: FoxDos 2.00 2.50 2.50a
KBCategory: kbenv kbnetwork
KBSubcategory:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.