Sorry if this has been asked before, I've been looking around and it's hard to find what I want.
I know how to add a context menu item to a folder like so:
@="Open Console2 Here"
@="C:\\Program Files\\Console\\console.exe -d \"\"%1\"\""
I figured out the answer. The folder is actually
Directory\Background, you have to add the empty string value of
NoWorkingDirectory into it, and the
%1 in the command becomes a
[HKEY_CLASSES_ROOT\Directory\Background\shell\console2] @="Open Console2 Here" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\Background\shell\console2\command] @="C:\\Program Files\\Console\\console.exe -d \"\"%V\"\""