How do I associate all unknown file types with notepad++?
I work alot with billing and files the bank etc. send me files that have date extensions or some counter as an extension:
eg file1.20110315 or file2.123
So the extension changes every time I receive another file.
Is it possible to associate all file types that end in numbers or if not any unknown file types with notepad(++)?
Thanks
You can edit the openas
command of the Unknown
type, i.e.
HKEY_CLASSES_ROOT\Unknown\shell\openas\command.
Alternatively, you can add a new command if you want to keep the Open As command.
If you want to make Open with Notepad++ the default, edit the default value of the HKEY_CLASSES_ROOT\Unknown\shell
subkey.
As the accepted answer isn't explicit in how to do this, here's how I got it to work:
- Open
regedit.exe
as administrator - Navigate to
HKEY_CLASSES_ROOT\Unknown\shell
- Right-click
shell
-> New -> Key -> "npp" - Right-click
npp
-> New -> Key -> "command" - Edit the Default value of
npp\command
to beC:\Program Files\Notepad++\notepad++.exe "%V"
or"C:\Program Files (x86)\Notepad++\notepad++.exe" "%V"
depending on where you installed npp.
(The %V passes the file path to the program).