Knowledge Base

Developer Studio cannot create files with no name extension

Article ID: 193474

Article Last Modified on 1/20/2006


APPLIES TO


This article was previously published under Q193474

SYMPTOMS

After creating a new file in the Developer Studio shell MSDev.exe or Devenv.exe, you cannot name it with a file name that does not have an extension.

RESOLUTION

After you save the new file in Developer Studio, close the file, rename it using Windows Explorer (or another technique), and then open it again.

STATUS

This behavior is by design.

MORE INFORMATION

Microsoft Windows Explorer uses file name extensions to determine the application that created the file. The file name extension is the portion of the file name following the final period "." in the name. In Windows Explorer, double-clicking a file name starts the application associated with the extension.

One of the Logo requirements for applications designed for Microsoft Windows operating systems is that they create data files with appropriate file name extensions.

Steps to Reproduce Behavior

  1. From the File menu in Developer Studio, click New and then click the Files tab.
  2. In the Files list, select Text File. Click OK without entering a file name.
  3. Type a character into the new file.
  4. From the File menu, click Save As. In the File name box, type "MyFile" (or any unique name). Click Save.

    Note The file name appears on the open window as "MyFile.txt".
  5. From the File menu, click Save As. In the File name box, type "MyFile.".

    Note The file name now appears as "MyFile..txt".
The same effect occurs with different extensions for the other file types that appear in the Files list when you click New in the File menu.

Keywords: kbide kbdevstudio kbprb kbdsstools kbvs2005applies kbvs2005swept KB193474