Microsoft KB Archive/131364

{| = PRB: File '\########.TMP does not exist' Error =
 * width="100%"|

ID: Q131364

The information in this article applies to:


 * Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS
When trying to create a new report, screen, label or menu in FoxPro for Windows, the error message '\########.TMP does not exist' sometimes occurs.

This indicates that FoxPro cannot find the temp file directory as specified in the CONFIG.FPW file. The error occurs either by creating a new report from the Command window or through the FoxPro menu system. An existing report or screen file can still be opened successfully but a new one cannot be created.

CAUSE
The temp directory specified in the CONFIG.FPW file either has a "Hidden" attribute or the directory does not exist (or is spelled incorrectly).

WORKAROUND
If the Temp directory doesn't exist, create it, and make sure the directory name and path is specified correctly in the CONFIG.FPW file.

If the Temp directory is hidden, remove the "Hidden" attribute by using File Manager to change the properties of the FoxPro Temp directory or by using the ATTRIB command at the MS-DOS prompt.

To correct this problem at the MS-DOS prompt, type this command:

attrib C:\'TempDirectoryName' -H To correct this problem using the Windows File Manager, follow these steps: 1. In File Manager, select the specified temp directory name.

2. From the File menu, choose Properties.

3. In the Property window, clear the hidden attribute check box.

STATUS
This behavior is by design. The Temp directory must exist and it must not be hidden.

Steps to Reproduce Behavior
1. Open the CONFIG.FPW file from FoxPro root directory or create a new one.

If the CONFIG.FPW doesn't exist use Notepad to create one. 2. Include the command "TMPFILES=C:\FOXTEMP" in the file. Foxtemp must be  an existing directory, if it dosen't exist, create it. 3. Start FoxPro for Windows and try to create a Report, Screen, Label or  Menu. The error message '\########.TMP does not exist' will occur. Additional reference words: FoxWin 2.60a KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral
 * }