DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: assign default program to always open file without extension?  (Read 10,509 times)

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • Gathering Badge
    • Linux User
can one assign default a program to always open file without extension?
when you right-click/open with... the box "always use this program" is grayed out.

Any workarounds?

Liquidmantis

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 64
Re: assign default program to always open file without extension?
« Reply #1 on: January 01, 2008, 09:55 PM »
This has bugged me before but not enough to bother looking for a solution.  A quick Google search for default program extensionless file turned up this on WindowsITPro.com though:

Quote
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

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: assign default program to always open file without extension?
« Reply #2 on: January 01, 2008, 11:42 PM »
Hm, I thought you had to assign it to '*' and not '.'. But yeah, it does work, used it for ages to fire up either a hex editor or text editor for files without file extension, based on file contents, but have been too lazy to re-assign for the last couple of years :$
- carpe noctem

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: assign default program to always open file without extension?
« Reply #3 on: January 02, 2008, 09:40 AM »
Seems like it should be possible to script this.  Would it not be possible to parse a file name and if none is found, then append a ".txt" or whatever the need is at the moment?

Edit - Hmmm. anyone know why the "4" won't allow the strikethrough?  :huh:
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: October 19, 2010, 09:41 PM by CodeTRUCKER »

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Re: assign default program to always open file without extension?
« Reply #4 on: January 05, 2008, 02:38 PM »
Edit - Hmmm. anyone know why the "4" won't allow the strikethrough?  :huh:

It's in there. It's just difficult to see because it bumps up against the horizontal line of the 4.

[attachimg=#]

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: assign default program to always open file without extension?
« Reply #5 on: January 06, 2008, 02:51 AM »
Ah!  I never would have found that!
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: October 19, 2010, 09:42 PM by CodeTRUCKER »

Original address: https://www.donationcoder.com/forum/index.php?topic=11613.0