Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Launch CMD by RMC in Explorer

Apr
1,794
15
@Charles Dye -

I'd love to have a modified RegTweaks.btm that would also ask the user if they want a "Run CMD here" prompt from the context menu....

Hope all is well...

The other Charles....
 
Roll your own! Here's my TCCHere for directory background. Name the key whatever you like (below it's "TCC"). The default value in that key ("TCCHere") is what appears on the context menu. The default value in the "command" subkey is the command. You can model one for CMD after this one ... maybe something like this (untested). The whole command is quoted. Quotes and backslashes inside the command are escaped.
Code:
@="\"c:\\windows\\system32\\cmd.exe\" cd /d \"%V\""

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC]
@="TCCHere"

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC\command]
@="\"d:\\tc28\\tcc.exe\" *cdd \"%V\""

Here's my one for directory.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\TCC]
@="TCCHere"

[HKEY_CLASSES_ROOT\Directory\shell\TCC\command]
@="\"d:\\tc28\\tcc.exe\" *cdd \"%V\""

And here's my one for drive.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\TCC]
@="TCCHere"

[HKEY_CLASSES_ROOT\Drive\shell\TCC\command]
@="\"d:\\tc28\\tcc.exe\" *cdd \"%V\""

I imagine you could put all three of these exports into one .REG file. IIRC, I made them by hand.
 
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\CMD]
@="CMDHere"

[HKEY_CLASSES_ROOT\Directory\Background\shell\CMD\command]
@="\"c:\\windows\\system32\\cmd.exe\" cd /d \"%V\""

[HKEY_CLASSES_ROOT\Directory\shell\CMD]
@="CMDHere"

[HKEY_CLASSES_ROOT\Directory\shell\CMD\command]
@="\"c:\\windows\\system32\\cmd.exe\" cd /d \"%V\""

[HKEY_CLASSES_ROOT\Drive\shell\CMD]
@="CMDHere"

[HKEY_CLASSES_ROOT\Drive\shell\CMD\command]
@="\"c:\\windows\\system32\\cmd.exe\" cd /d \"%V\""
 
P.S., I don't remember why but I also did it in HKCR\Folder\shell.
 
Back
Top