Applications Using Common Dialogs Append Default ExtensionLast reviewed: November 14, 1996Article ID: Q125708 |
The information in this article applies to:
SYMPTOMSWhen you save a file in an application, you cannot give the file any extension other than that application's default extension. For example, when you specify the filename FILENAME.EXT for a file in Notepad, the file is saved as FILENAME.EXT.TXT.
CAUSEThis behavior is by design for any application that uses the common dialog boxes (such as the Save As dialog box). This behavior is generally desirable because it lets you see the appropriate files for the application you are using when you use the common Open dialog box to open files. Note that if the extension you specify when you are saving a file is a registered file type in Windows, an application that uses the common dialog boxes will not append its default extension to the filename you specify. For example, you can specify an .INI extension for a file that you save in Notepad because files with an .INI extension are associated with the Notepad application.
RESOLUTIONTo save a file with an extension that is not registered as a file type in Windows, place quotation marks around the filename. To save a file with the filename FILENAME.EXT, enter
"FILENAME.EXT" (with quotation marks)in the Save As dialog box.
MORE INFORMATIONIf you save files with a particular extension frequently, you may want to create a registered file type for that extension. To do so, follow these steps:
|
KBCategory: kbusage kbtool kbui
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |