Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

September 07, 1999 12:00 AM

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

Windows IT Pro
InstantDoc ID #14926
Rating: (12)

A. Normal files with an extension can have a program associated however this is not the case with files that don't have an extension. If you double click on one and select an application and check the box to always use that application it is ignored and every time you select a file you have to choose 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 the application selected.

To check what an existing application used look at its entry under HKEY_CLASSES_ROOT, e.g. HKEY_CLASSES_ROOT\.doc uses Word.Document.8 so if you wanted 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:\winnt\notepad.exe
  3. Click ok, then ok again

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    May 13, 2005

    This is nice to know. However, since in Windows 2000 pro it does not allow me to select the "Advance" button, I am unable to change the ICON for the extensionless file, is there a way to change it trough the registry?

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.