DefaultDir$() Function Always Returns Path in Lowercase

Last reviewed: February 5, 1998
Article ID: Q121966
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0

SYMPTOMS

The Files$(".") function in Word 6.0x for Windows 3.1x 16 bit always returns in Upper Case and the DefaultDir$(n), where n is from 1 to 15, always returns lower case. Word 7.0 running under Windows 95 also returns all lower case when using DefaultDir$(), however, Files$(".") will return the correct case of the current directory.

STATUS

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

WORKAROUND

To return a path in the proper case, use Files$(".") in place of DefaultDir$(0).

For DefaultDir$(n) functions, where n is from 1 to 15, there is no easy workaround available.


KBCategory: kbprg buglist6.0
KBSubcategory: kbmacro
Additional reference words: 6.0 nt ntword wordnt defaultdir defaultdir$
winword 6.0a 6.0c 7.0 word95 word7 defaultdir$() files$ files$() files
function command wordbasic word basic
macro path lowercase lower case uppercase upper case incorrect mixed
word6
Keywords : kbmacro
Version : 6.0 6.0a 6.0c 7.0
Platform : NT 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 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.