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

link|improve this question
What OS are you using? – David Oneill Mar 15 '11 at 18:02
feedback

migrated from stackoverflow.com Mar 15 '11 at 16:34

This question came from our site for professional and enthusiast programmers.

3 Answers

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.

link|improve this answer
Yup, this is the correct method to register unknown filetypes. The HKCR\* key is for all files. For the record, I too would not recommend setting a text-editor as the default open command for all or unknown files. Instead, set a hex-editor as the default open command, and add a separate “notepad” command for the text-editor. – Synetech Mar 15 '11 at 19:07
feedback

You can assign the file type "*" in the registry with Notepad++. But I won't reccomend this, since all files, even binary ones, dll's and so on will be associated then.

link|improve this answer
this is not what have been asked. – Luixv Mar 15 '11 at 16:08
But it is a relevant answer, and a possible solution. – CajunLuke Mar 15 '11 at 16:42
feedback

The article Add "Open with Notepad" to the Context Menu for All Files describes how to do something similar to what you want, and could easily be changed for use notepad++.

I'm not aware of a way to do it for all numeric extensions.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown