PRB: File "C:\TEMP\99999999.TMP" Does Not Exist

ID: Q119062

The information this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

When you are trying to create a new screen or report, the error message "File 'C:\TEMP\<99999999.TMP>' does not exist" appears, where <99999999.TMP> is any random combination of numbers.

CAUSE

When you open a new screen file (*.SCX) or a report file (*.FRX), FoxPro creates a temporary file. The filename for this temporary file will be eight randomly generated numbers with an extension of .TMP. If there is a TMPFILES = statement in the CONFIG.FPW file and the directory pointed to by that statement does not exist, FoxPro generates the error mentioned above.

RESOLUTION

Make sure that the TMPFILES = statement in the CONFIG.FPW file specifies a valid directory. For example, if the TMPFILES = statement is

   TMPFILES = C:\TEMP

make sure TEMP is a valid directory that exists on drive C.

NOTE: This problem also occurs when the TEMP directory is hidden.

MORE INFORMATION

Steps to Reproduce the Problem

1. In the Command window, type the following:

     MODIFY FILE c:\<FoxPro_directory>\config.fpw

2. Either modify the existing TMPFILES statement or create a new statement
   that directs the temporary files to a directory that does not exist.
   For example:

      TMPFILES = C:\BADDIR

3. Save the file and then quit FoxPro.

4. Restart FoxPro for Windows.

5. In the Command window, type either of the following commands:

      CREATE REPORT

      -or-

      CREATE SCREEN

You will receive the following error message (note that the 9's can be any numbers):

   File 'C:\baddir\99999999.tmp' does not exist

Additional reference words: FoxWin VFoxWin 2.50 2.50a 2.50b 2.60 2.60a 3.00 3.00b errmsg err msg KBCategory: kbprg kberrmsg kbprb KBSubcategory: FxenvConfigfp


Last Reviewed: March 16, 1996
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.