PRJ4: ChDir Command Doesn't Change the Default Directory

Last reviewed: November 24, 1997
Article ID: Q130327
The information in this article applies to:
  • Microsoft Project for Windows, version 4.0
  • Microsoft Project for Macintosh, version 4.0

SYMPTOMS

In Microsoft Project, the Visual Basic, Applications Edition, ChDir statement doesn't change the current folder or directory.

WORKAROUND

To work around this problem, specify the full path to the file you want to open in the FileOpen Command.

STATUS

Microsoft has confirmed this to be a problem in the 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

The ChDir statement is designed to change the current directory or folder (on the Macintosh). A ChDir command followed by a FileOpen command should look for the specified file in the directory specified by the ChDir statement. This doesn't happen. Project looks for the file in the directory that was the default directory before the ChDir statement was executed.


Additional query words: 4.00
Keywords : kbcode kbprg
Version : 4.0
Platform : MACINTOSH WINDOWS
Issue type : kbprb


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