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:SomePathToYourIconRessource.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 PathMy Program.exe' '%1'
. %1
will be replaced with the actual file name picked for this action.