OFF: Default File Extension Added to Filename Using Save As

Last reviewed: October 30, 1997
Article ID: Q131161

The information in this article applies to:

  • Microsoft Office for Windows 95, version 7.0
  • Microsoft Office 97 for Windows
  • Microsoft Excel for Windows 95, version 7.0
  • Microsoft Excel 97 for Windows
  • Microsoft PowerPoint for Windows 95, version 7.0
  • Microsoft PowerPoint 97 for Windows
  • Microsoft Word for Windows 95, version 7.0
  • Microsoft Word 97 for Windows
  • Microsoft Project for Windows 95, version 4.1
  • Microsoft Access, version 7.0
  • Microsoft Access 97 for Windows

SYMPTOMS

In the Microsoft applications listed above, when you change or add an extension to a filename in the Save As dialog box, an additional extension may be added to the filename. For example, if you use the Save As dialog box in Microsoft PowerPoint to save your presentation as SLIDES.ABC, the file may be saved as SLIDES.ABC.PPT.

CAUSE

When you save a file in the Save As dialog box, the extension defaults to match the file type listed in the Save As Type box. If you change the extension or add an extension, the default extension is appended to the new extension.

When you save a document in Microsoft Word, the default extension that appears in the Save As Type list is Word Document (*.doc). If you save a file with an extension other than *.doc while this default extension is selected in the Save As Type list, the extension .DOC is appended to the filename that you entered. For example, if you save a file as TEST.DAT while Word Document (*.doc) is selected in the Save As Type list, the file is saved as TEST.DAT.DOC.

This behavior is by design of Microsoft Windows 95. The extension that appears in the Save As Type list is appended to the filename when you save a file, even if you enter an extension for the file. Note however that the extension is not appended if you enter the same extension that appears in the Save As Type list. For example, if you save your Microsoft Excel worksheet as TEST.XLS while Microsoft Excel Workbook (*.xls) is selected in the Save As Type list, the file is saved as TEST.XLS, not as TEST.XLS.XLS.

This behavior occurs because of the functionality of using long file names, and the ability to save a file with a filename that contains a period (.). The file extension in Microsoft Windows 95 identifies the file type. Because of this, if you save a file with a file extension that is not registered in Windows, such as .DAT, the file type is displayed as DAT File.

WORKAROUNDS

To save a file with an extension other than one of the extensions available in the Save As Type list, enclose the entire filename in quotation marks as in the following examples:

   "test.dat"

   -or-

   "slides.dat"

Note that you can also turn off the display of file extensions for registered file types in Windows by doing the following in Windows Explorer or My Computer:

   1. On the View menu, click Options.

   2. Click the View tab.

   3. Select the "Hide MS-DOS File Extensions For File Types That Are
      Registered" check Box, and then click OK.


KBCategory: kbusage
KBSubcategory: xlwin offwin

Additional reference words: 7.00 file name edit prj incorrect wrong

Keywords : offwin xlwin kbusage
Version : WINDOWS:7.00 97
Platform : 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: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.