ID: Q121966
The information in this article applies to:
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.
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.
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
Last Reviewed: February 5, 1998