DefaultDir$(0) Does Not Return DOC-PATH Directory

Last reviewed: July 30, 1997
Article ID: Q109090
The information in this article applies to:
  • Microsoft Word for Windows, version 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows NT, version 6.0

SYMPTOMS

The DefaultDir$(0) function may or may not return the DOC-PATH directory.

To display the DOC-PATH directory, choose Options from the Tools menu and select the File Locations tab. The DOC-PATH is the directory listed under Location for the Document File Type.

CAUSE

By design, the DefaultDir$(0) function returns the current default directory, which you can change by selecting a different directory in the File Open dialog box. As a result, if you have not changed the default directory since you started the current Word session, DefaultDir$(0) returns the DOC-PATH directory. On the other hand, if you change the default directory, DefaultDir$(0) returns the current default directory instead of the DOC-PATH directory.

MORE INFORMATION

This functionality is not clearly defined in online help or in the "Microsoft Word Developer's Kit."

REFERENCES

"Microsoft Word Developer's Kit," version 6.0, page 331

Kbcategory: kbusage kbmacro KBSubcategory:


Additional query words: 6.0 macros document paths functions word6
winword6.ini [microsoft word] section docerr winword ntword wordnt wordnt
Version : 6.0 6.0a 6.0c
Platform : WINDOWS


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