Microsoft KB Archive/120534

{| = ERR: An Unexpected Error Occurred While Trying to Create Tmp =
 * width="100%"|

ID: Q120534

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.6, 2.6a
 * Microsoft FoxPro for MS-DOS, versions 2.6, 2.6a

SYMPTOMS
The error message "An Unexpected error occurred while trying to create tmp" will be generated when you are running FoxPro from a workstation installation that has read-only rights to the FoxPro directory on the network.

MORE INFORMATION
After FoxPro is started, the "Welcome to FoxPro" screen will be displayed. In that screen, if you select the "Don't Display Introductory Screen again" check box and then choose the "Proceed to the FoxPro menu system" button, the above error message will be displayed if the network directory where FoxPro is installed is shared as read-only.

RESOLUTION
There are two ways to resolve this problem:

Method 1
Give the users full rights to the FoxPro directory on the network.

Method 2
1. Create a CONFIG.FP (for FoxPro for MS-DOS) or CONFIG.FPW (for FoxPro fro

Windows) file, a local TEMP directory, and a local FoxPro directory. In  the configuration file, type the following lines:

TMPFILES=C:\TEMP EDITWORK=C:\TEMP SORTWORK=C:\TEMP PROGWORK=C:\TEMP 2. Do one of the following: a. For FoxPro for Windows, edit the properties of the FoxPro icon so     that the Command Line box reads as follows



where is the network drive on which FoxPro is installed and  is the name of the directory in which FoxPro is located.

b. For FoxPro for MS-DOS, add the following line to the AUTOEXEC.BAT file:

SET FOXPROCGF= \CONFIG.FP Additional reference words: FoxWin FoxDos errmsg splash 2.60 2.60a KBCategory: kbenv kberrmsg kbnetwork KBSubcategory: FxenvConfigfp
 * }