FIX: "Invalid Path or Filename" When Opening a Project

Last reviewed: October 20, 1997
Article ID: Q117835
2.50 2.50a 2.50b 2.60 | 2.50b 2.50c.2.60a
WINDOWS               | MACINTOSH
kbprg kberrmsg kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c, 2.6a

SYMPTOMS

When you open a project in FoxPro for Windows after the project has been created or modified by FoxPro for Macintosh, the error message "Invalid path or filename" is displayed. This error occurs when the project is located on a network drive and is accessed by both FoxPro for Macintosh and FoxPro for Windows.

CAUSE

This problem occurs when a screen is included in the project and the screen is generated while the default folder is a folder on the Macintosh hard disk. Opening the project (.PJX) file as a database and examining the contents of the Name field for a record of Type capital "S" shows that the Macintosh hard disk and folder name precede the .SPR filename. This entry in the .PJX file is created when the project regenerates the screen file during rebuilding. The rebuilding process shows the screen being regenerated on the network drive. However, the name written to the .PJX file is preceded by the default folder name.

RESOLUTION

Changing the default folder to the network drive and folder will allow the project to be opened successfully from both platforms. The Name field in the .PJX file for the record(s) of Type capital "S" will now show only the name of the .SPR file (the path isn't included).

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro for Macintosh version 2.6a.

NOTE: This problem does not occur in FoxPro for MS-DOS.

MORE INFORMATION

Steps to Reproduce Behavior

  1. In FoxPro for Macintosh, choose View from the Window menu, and then click the Folder button.

  2. Select the Working folder and set it to the FoxPro folder on the Macintosh hard disk. (This is probably the default setting.)

  3. Create a project by choosing New from the File menu and selecting Project.

  4. Place a screen on the network drive. Add the screen to the project by clicking Add and selecting the screen.

  5. Build the project. Note that the .SPR is being built on the network drive.

  6. Close the project.

  7. In FoxPro for Windows, choose Open from the File menu and select the project on the network drive. The message "Invalid path or filename" appears. Click on the Window menu, and the project name appears at the bottom of the Window menu. If you click the name of the project, an empty project screen appears.


Additional reference words: FoxMac FoxWin buglist2.50 buglist2.50a
buglist2.50b buglist2.50c buglist2.60 2.50 2.50a 2.50b 2.50c 2.60
errmsg err msg
KBCategory: kbprg kberrmsg kbbuglist
KBSubcategory: FxnetworkGeneral
Keywords : FxnetworkGeneral kbbuglist kberrmsg kbprg
Version : 2.50 2.50a 2.50b 2.60 | 2.50b 2.
Platform : MACINTOSH WINDOWS
Solution Type : kbfix


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