Microsoft KB Archive/121966

{|
 * width="100%"|

DefaultDir$ Function Always Returns Path in Lowercase

 * }

Q121966

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
 * Microsoft Word for Windows, 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.

Additional query words: 6.0 nt ntword wordnt defaultdir defaultdir$ winword 7.0 word95 word7 defaultdir$ files$ files$ files function command wordbasic word basic macro path lowercase lower case uppercase upper incorrect mixed word6

Keywords : kbmacro

Issue type :

Technology :