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

Last reviewed: October 20, 1997
Article ID: Q114459
2.50 2.50a 2.50b 2.60 MS-DOS kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6

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


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.