With Windows XP I could use the Control Panel to add a new file extension, associate it with a program, and assign an icon to it. I did that using Folder Options in the Control Panel. Folder Options has a tab in it called "File Types".
But Windows 7 Folder Options does not have that tab. And the suggested place for file associations (Default Programs) does not let me add a new extension.
How do I do what I want to (i.e. associate a new extension with an existing program and also apply a new icon to it)?
Right-click the File Type Associations node, and select New Association from the pop-up menu. Complete the first step of the dialog box by completing the following information, and then click Next: Extension—Enter a new file name extension. This field is blank by default.
Unfortunately it's one of those things they made more complicated in an attempt to make it more simple (e.g. you're able to change the associated program, but that's it).
You can either use third party programs or just edit the registry yourself (do not modify the registry unless you're really sure on what you're doing! Mistakes might break settings or even make your system unbootable!):
HKEY_CLASSES_ROOT
and pick New
, Key
. Name it according to your desired file extension, e.g. .ext
. If it exists already, you can skip this step.MyFileType
. Again, if it's set already, skip this step.DefaultIcon
.C:\Some\Path\To\Your\Icon\Ressource.ico,0
(the 0
is the index of the icon to be used; if there's only one icon in the ressource, it has to be 0).DefaultIcon
and call it shell
.open
, edit
or print
.command
and set its default value to the program to be run. Also make sure to include all parameters needed, adding quotes if there are spaces inside, e.g. "C:\My Path\My Program.exe" "%1"
. %1
will be replaced with the actual file name picked for this action.If "Open With" isn't offered, just click on "Open". If there is no default program already associated with the file type, you'll be given a choice of searching for a suitable program on the Web, or selecting a program from a list of installed programs, just as with the old "Open With".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With