Launch CMD by RMC in Explorer

Apr 2, 2011
1,541
13
54
North Carolina, USA
@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....
 
May 20, 2008
11,810
118
Syracuse, NY, USA
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.
 
Apr 2, 2011
1,541
13
54
North Carolina, USA
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\""