Associating a program to a file with no extension
September 6th, 2007I recently had to figure something out in windows that has driven me crazy for quite some time.
I edit quite a few files on windows that do not have file extensions. I wanted to associate my favorite editor to the file when there is no extension, but it appears you can’t do this through XP’s graphical interface. Here is how to do it:
Under Start->Run…
REGEDIT

You are now in the registry editor. Create an entry for HKEY_CLASSES_ROOT\.\shell\open\command
as follows:

Set the Data to be the program you want to use:
C:\Program Files\Vim\vim64\gvim.exe “%1″
or, if you prefer notepad, you can use:
C:\Windows\notepad.exe “%1″