How do I create a default association for files with no extension?

John Savill

September 6, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Normal files with an extension can have a program associatedhowever this is not the case with files that don't have an extension. If youdouble click on one and select an application and check the box to always usethat application it is ignored and every time you select a file you have tochoose the application.

You can force this using the registry:

  1. Start the registry editor (regedit.exe)

  2. Move to HKEY_CLASSES_ROOT

  3. From the Edit menu select New - Key

  4. Enter a name of '.' and press Enter (don't type the quotes)

  5. Select the new '.' key

  6. Double click the (Default) value

  7. Change to the HKEY_CLASSES_ROOT used to open, e.g. NOTEPAD for the notepad.exe application
    NOTEPAD

  8. Click OK

Click here to view image

If you now double click on a file with no extension it will open with theapplication selected.

To check what an existing application used look at its entry underHKEY_CLASSES_ROOT, e.g. HKEY_CLASSES_ROOT.doc uses Word.Document.8 so if youwanted this as your default editor you would change HKEY_CLASSES_ROOT.(Default)to Word.Document.8.

Any method which avoids the need to edit the registry is as follows:

  1. Open Explorer - View - Folder Options... - File Types - New Type:

  2. Description of type:  Text    (any description, you can type in)
    Associated extension: .       (just a period)
    Actions: - new...
    Action: open
    Application used to perform action: c:winntotepad.exe

  3. Click ok, then ok again

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like