topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 3:56 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
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
    • View Profile
    • Donate to Member
Re: assign default program to always open file without extension?
« Reply #1 on: January 01, 2008, 03: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:

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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: assign default program to always open file without extension?
« Reply #2 on: January 01, 2008, 05: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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,085
    • View Profile
    • Donate to Member
Re: assign default program to always open file without extension?
« Reply #3 on: January 02, 2008, 03: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:
« Last Edit: October 19, 2010, 04:41 PM by CodeTRUCKER »

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: assign default program to always open file without extension?
« Reply #4 on: January 05, 2008, 08:38 AM »
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.

2008-01-05_0836.png

CodeTRUCKER

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,085
    • View Profile
    • Donate to Member
Re: assign default program to always open file without extension?
« Reply #5 on: January 05, 2008, 08:51 PM »
Ah!  I never would have found that!
« Last Edit: October 19, 2010, 04:42 PM by CodeTRUCKER »