I wanted to create my own file extension and set two actions possible to do with the file.
Here is .reg file I created:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.dls\]
@="DLSource"
[HKEY_CLASSES_ROOT\.dls\ShellNew]
"FileName"="source.dls"
"NullFile"="source.dls"
[HKEY_LOCAL_MACHINE\Software\Classes\DLSource\shell\]
[HKEY_LOCAL_MACHINE\Software\Classes\DLSource\shell\Open in DLI\command]
@="C:\\dl\\DLI.exe \"%1\""
[HKEY_LOCAL_MACHINE\Software\Classes\DLSource\DefaultIcon]
@="c:\\dl\\fav.ico"
[HKEY_LOCAL_MACHINE\Software\Classes\DLSource\shell\Compile with DLC\command]
@="C:\\dl\\DLC.exe \"%1\""
It works correctly, but Compile with DLC
is default and is higher in context menu than Open in DLI
. I want to set it oppositely, I suppose that now it's sorted alphabetical.
Here is pic how it is now: