Chris
Apr 6th, 2002, 05:49 AM
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,
Zaei
Apr 6th, 2002, 07:20 AM
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:
HKEY_CLASSES_ROOT
myext
shell
open
cmd
(Default) = "c:\myapp.exe" %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 =).
Z.