In Windows 8.1 (and probably other versions as well) it was possible to add a program to the shell/context menu of any directory. However applying the method it doesn't seem to work in Windows 10. When adding the key to a file extension it does work though.
What I'm specifically trying to do is opening a folder in sublime from the context menu. I used the same key in Windows 8.1 where it did work. Here is the content of a registry file:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text] [HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text\command] @="C:\\Program Files (x86)\\Sublime Text 3\\sublime_text.exe \"%V\""