WordBasic Returns MS-DOS Path with Wrong CapitalizationLast reviewed: February 5, 1998Article ID: Q138274 |
The information in this article applies to:
SYMPTOMSWhen you use any of the following WordBasic commands, the information may be returned in either all uppercase letters or mixed uppercase and lowercase letters.
FileName$() Files$() GetAddinName$() SelectionFileName$() FileNameInfo$() CAUSEAny file or folder (directory) originally created under MS-DOS will be returned in all uppercase letters. Files and folders created under Windows 95 are returned with the same capitalization as they were created. For example, if you create a file in MS-DOS named OLDDOS.TXT and run the following macro on it:
Sub MAIN MsgBox FileName$() End SubWord will show its name as
C:\My documents\DOSDIR\OLDDOS.TXT WORKAROUNDGive the file or folder a new name in Windows 95:
Renaming the file or folder with the same name isn't sufficient; you must give the file a new name first and then give it the original name.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |