PRB: "Error Locating Config File-Bad Path?" in VFP 5.0

Last reviewed: July 25, 1997
Article ID: Q163801
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.0x
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SYMPTOMS

When starting Visual FoxPro, the error, "Error locating config file-bad path?" can occur. If starting FoxPro for Windows 2.x, the error will be "Invalid path or file name". After clicking OK, Visual FoxPro starts and runs properly. FoxPro for Windows 2.x will not run, and terminates with a General Protection Fault. When starting an executable file built by any of the FoxPro products listed above, one or more of the following errors can occur:

  • Error locating config file-bad path?
  • Invalid path or file name
  • A DO dialog box appears

If the .exe file was created in FoxPro for Windows 2.x or Visual FoxPro 3.0, a general protection fault can occur after the above errors appear.

CAUSE

This error message is by design. The problem is the Path statement in the Autoexec.bat file. There is a semicolon missing that divides the directories that make up the Path statement.

RESOLUTION

Go into the Path statement and add the semicolon. If the operating system is Windows 3.1 or Windows 95, check the Autoexec.bat file. If the operating system is Windows NT 3.51, go to the System icon in the Control Panel, or in Windows NT 4.0, check the Path statement on the Environment Tab, which is under Properties in My Computer.

STATUS

This behavior is by design.

MORE INFORMATION

When FoxPro or an executable file built with FoxPro starts, it looks for a Config.fpw file in the home directory. If there is not a Config.fpw file located there, it looks along the Path statement. If there is a semicolon missing that separates the directories in the path, one or more of the above errors occurs because FoxPro cannot continue looking along the path to locate the Config.fpw file. There can be an old directory in the path statement that no longer exists on the computer and FoxPro ignores it and continues looking in the next directory of the path. If no Config.fpw file is found, FoxPro starts without one.

Steps to Reproduce Behavior

  1. Modify the Path statement and remove one of the semicolons that separates the directories.

  2. Restart the computer for the changes to take effect.

  3. Start FoxPro or an .exe file to receive one or more of the errors listed above.

Keywords          : FoxWin FxenvAutoexec vfoxwin kbenv
Version           : 2.0 3.0 3.0b 5.0
Platform          : WINDOWS
Issue type        : kbprb
Solution Type     : kbservicepack


================================================================================


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: July 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.