jackjoker
asked on
Extensions
Is there a way to enter a file extension into the registry such that whenever the user clicks on a file with a certain extension, it will open up my program to edit the file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
not quick enough :-(
this comment was originally from someone else and it works so thanks to them although is same as answer
Let's say you want to register the extension "*.vif" for a "very important file".
(1) Create a new key "HKEY_CLASSES_ROOT\.vif".
(2) Set "HKEY_CLASSES_ROOT\.vif\(d
(3) Create a new key "HKEY_CLASSES_ROOT\veryImp
(4) Set "HKEY_CLASSES_ROOT\veryImp
(5) Create a new key "HKEY_CLASSES_ROOT\veryImp
(6) Set "HKEY_CLASSES_ROOT\veryImp
or another icon resource. The ",1" is the icon index in your exefile for the document icon.
Regards Barry