Hi, does anyone know how to register a new file type to explorer? So that, we double click on the file, it will automatic load the define application?
regards,
Printable View
Hi, does anyone know how to register a new file type to explorer? So that, we double click on the file, it will automatic load the define application?
regards,
Create a registry key under HKEY_CLASSES_ROOT, with your file extension. You then have to create another key under that one, called shell, then under shall, one called open, then, under open, cmd, and the default value should be your application's path, followed by %1:
There are a few other settings that you need to add in there as well, but you should be able to figure them out with a little bit of registry diving =).Code:HKEY_CLASSES_ROOT
myext
shell
open
cmd
(Default) = "c:\myapp.exe" %1
Z.