Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 



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

RSS
Subscribe to Windows IT Pro | See More Registry Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

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

End of Article



Reader Comments
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?

Anonymous User May 13, 2005 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Kon-Boot Lets You Bypass Logon for Windows and Linux

Kon-Boot looks like a very interesting tool since it can get you into a system without having to logon first. ...

Google to Take On Windows with New OS

It's official: Google will compete head-to-head with Microsoft's dominant Windows OS with a new system called Google Chrome OS. Based on the Google Chrome browser and not its previous OS effort, the smart phone-based Android system, Google Chrome OS will ...

Q. How can I continually check a performance counter from Windows PowerShell?

...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events WinConnections and Microsoft® Exchange Connections

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing