FIX: FULLPATH() Returns Incorrect Path for Running .APP

ID: Q114459

2.50 2.50a 2.50b 2.60 MS-DOS kbprg kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

The FULLPATH() function returns the incorrect pathname for an application that is currently running.

STATUS

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for MS-DOS. This problem was corrected in FoxPro version 2.6a for MS-DOS.

MORE INFORMATION

Steps to Reproduce Problem

NOTE: These steps assume that drive C contains a main FoxPro directory called FPD26 and an empty directory called TEST.

 1. In the  Command window, type "SET DEFAULT TO C:\TEST" (without the
    quotation marks).

 2. Create a new project named TESTPROJ.PJX.

 3. In the Project window, choose Add. In the Type popup, select Menu.
    Choose New and save the menu as MAINMENU.MNX.

 4. Under Prompt, type "Test FULLPATH" (without the quotation marks).

 5. In the popup to the left of "Test FULLPATH," choose Command.

 6. In the text box to the left of Command, type "DO testfull.prg"
    (without the quotation marks).

 7. Close the menu and save the changes.

 8. In the Project window, choose Add. In the Type popup, select Program.
    Choose New and save the program as TESTFULL.PRG.

 9. In the TESTFULL.PRG program window, type the following:

       SET PATH TO C:\TEST
       WAIT WINDOW 'MAINMENU.MPR: ' + FULLPATH('MAINMENU.MPR')
       WAIT WINDOW 'TESTPROJ.APP: ' + FULLPATH('TESTPROJ.APP')

10. Close the program window and save the changes.

11. In the Project window, choose Build.

12. Select the Build Application radio button, and then choose OK. Choose

    Yes when asked if you want to save changes to the project.

13. Choose Build to accept the default application name, TESTPROJ.APP.

14. Close the Project window.

15. Run the TESTPROJ.APP application.

16. Choose the Test FULLPATH menu.

17. Note that the first wait window displays the following text:

       MAINMENU.MPR: C:\TEST\MAINMENU.MPR

    Press ENTER to clear the wait window.

Note that the next wait window displays the following text, containing the incorrect pathname:

   TESTPROJ.APP: C:\TEST\MAINMENU.MPX

NOTE: To restore the FoxPro menu to its normal state, type "SET SYSMENU TO DEFAULT" (without the quotation marks) in the Command window.

Additional reference words: FoxDos 2.50 2.50a 2.50b 2.60 buglist2.50 buglist2.50a buglist2.50b buglist2.60 fixlist2.60a KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: Solution Type : kbfix

Last Reviewed: October 20, 1997