BUG: App Run from CONFIG.FPW Returns "File Does Not Exist"

ID: Q130612

The information in this article applies to:

SYMPTOMS

In FoxPro for Windows an application (.APP file) does not find an included program file (.PRG file) and returns a "File Does Not Exist" error when all of the following conditions are met:

1. The application does not contain a foundation READ.

2. The application calls a program that only exists within the .APP file.

3. The application (.APP file) is executed from a "COMMAND=" statement in

   the CONFIG.FPW file.

There is no problem if the application is run from the Command window in FoxPro for Windows or from the "command=" line in the CONFIG.FP in FoxPro for MS-DOS.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

1. Copy the following code into a program, and save it as DOIT.PRG:

   ***************DOIT.PRG
   erase it.prg                   && Be sure IT.PRG does not exist
   erase it.fxp                   && Or its FXP

   SET SYSMENU TO
   SET SYSMENU AUTOMATIC

   DEFINE PAD _qq517hhda OF _MSYSMENU PROMPT "Do It" COLOR SCHEME 3
   DEFINE PAD _qq517hhe5 OF _MSYSMENU PROMPT "Quit" COLOR SCHEME 3
   ON SELECTION PAD _qq517hhda OF _MSYSMENU Do It.prg
   ON SELECTION PAD _qq517hhe5 OF _MSYSMENU set sysmenu to default
   ***********END DOIT.PRG*********************

2. Create a second program. Add the following code, and save it as IT.PRG:

   WAIT WINDOW "This Is IT!"

3. Create a new project. Add DOIT.PRG to the project.

4. Choose build. Build an applicaton, and save it as DOIT.APP.

5. Place "COMMAND = DO DOIT.APP" (without the quotation marks) in the

   CONFIG.FPW file.

6. Quit and restart FoxPro.

7. Select "Do It" from the menu.

RESULTS: Program Error: "File IT.PRG does not exist"

Additional reference words: FoxWin 2.60a buglist2.60a KBCategory: kbenv kbbuglist KBSubcategory: FxenvConfigfp

Last Reviewed: June 27, 1995