DefaultDir$() and GetDirectory$() Return Lowercase Path

Last reviewed: February 6, 1998
Article ID: Q133788
The information in this article applies to:
  • Microsoft Word for Windows 95, version 7.0

SYMPTOMS

The DefaultDir$() and GetDirectory$() functions in WordBasic both return a path in all lowercase letters instead of mixed-case letters, which is supported by Windows 95 and Windows NT.

CAUSE

This is a limitation of the WordBasic commands.

WORKAROUND

You can convert the path into all uppercase characters by using the UCASE$() function. For example, the following function returns C:\MSOFFICE\TEMPLATES:

   MsgBox UCase$(DefaultDir$(1))

There is no direct way to return the mixed-case form of the paths.

STATUS

Microsoft has confirmed this to be a problem in Word for Windows 95 version 7.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


KBCategory: kbmacro buglist7.0
KBSubcategory:
Additional reference words: word95 7.0 word7 winword

Keywords : kbmacro
Version : 7.0
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: February 6, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.