PRB: SYS(2004) Returns Incorrect DirectoryLast reviewed: January 22, 1996Article ID: Q140614 |
The information in this article applies to:
SYMPTOMSSYS(2004) returns incorrect information. According to the online Help file, SYS(2004) should return the name of the directory or folder from which Visual FoxPro was started. However, if you are running several instances of Visual FoxPro, the SYS(2004) function returns only the directory from which the first instance was started.
CAUSEExecutable files created in Visual FoxPro are not standalone applications. They rely on the Vfp300.esl as a runtime library. The SYS(2004) function returns the location of this file during run time. Even if you have multiple copies of this run-time library, the operating system will not load several instances into memory; it only opens one copy. That is why the SYS(2004) function only reports the location of the first one that was started.
RESOLUTIONYou can use one of the following alternate methods to obtain the startup directory:
STATUSThis behavior is by design.
MORE INFORMATION
For information about an alternative method of obtaining the path to the installation, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q138937 TITLE : How to Tell Which Directory Holds a Visual FoxPro App's .Exe Steps to Reproduce Behavior
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |