Do you set "hkcr:\directory\background\shell\(text)\command".
What this does is allow to write click on a background of an open folder, and run the command in there. Here is a sample regedit for my background setting. Also there's a '4nt here' dll, which i suppose could be modified to show tcchere.dll, which does this.
I have a version of
http://code.kliu.org/cmdopen/ this, which does a lot of the nifty stuff for cmd.exe, but you can patch the dll to use 4nt.exe or tcc.exe or something else. What i am really looking for is something that will run under cmd.exe, use apppath, and load the proggie named. Something like write.exe, but without leaving the console. You could remove a lot of stuff from the path, and still run exefiles.
I have a modified version of 4nt.exe = hacked write.exe -> 4ntu.exe -> apppath -> l:\newin\jpsoft\4nt.exe, but running 4nt.exe starts a new window, rather than load it in the current window. [putting 4nt in place of 4ntu.exe is circular. You got to use some bogus name.]
The cmdopen thing has been taught to run cmx.exe, which is one of several versions of write.exe, designed to run 4nt or tcmd or tcc (which does not run in my windows, but one day i will upgrade to XP, i fear).
Code:
REGEDIT4
[HKEY_CLASSES_ROOT\Directory\Background]
[HKEY_CLASSES_ROOT\Directory\Background\shell]
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu Here]
"Icon"="L:\\newin\\ConEmu\\ConEmu.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu Here\command]
@="\"L:\\newin\\ConEmu\\ConEmu.exe\" /cmd cmd -cur_console:n"