REQ: tcmdhere.btm mod

Apr 2, 2011
1,274
3
53
North Carolina, USA
rem This batch file adds the "TCMD prompt here" entry to Windows Explorer

I'd like to add a verb to the directory / drive context menu - so it can allow TCMD to "run as administrator" in the specified location. I am just not clear how to modify the tcmdhere.btm to do it - and selectively remove the entries from the registry. Any help / guidance greatly appreciated....

TCC 16.03.54 x64 Windows 7 [Version 6.1.7601]
 
May 20, 2008
10,574
78
Syracuse, NY, USA
It's too bad that you can't specify a shortcut as the command for a shell verb; that would make this easier. This should work.

In TCMD's home directory, make a copy of TCMD.EXE called, say, TCMDUP.EXE. In the "Properties" for TCMDUP.EXE ... "Compatibility" ... specify "Run as administrator". Then either edit tcmdhere.btm to change "tcmd.exe" to "tcmdup.exe" and run it. Or run tcmdhere.btm first and later edit the registry to make the same change.

You could also use either editing method to change the context menu text from "TCMD prompt here" to whatever you like.

Of course,

1. you'll get the UAC prompt
2. you'll have to (should) update TCMDUP.EXE whenever you update TCMD.EXE
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,203
72
Albuquerque, NM
prospero.unm.edu
rem This batch file adds the "TCMD prompt here" entry to Windows Explorer

I'd like to add a verb to the directory / drive context menu - so it can allow TCMD to "run as administrator" in the specified location. I am just not clear how to modify the tcmdhere.btm to do it - and selectively remove the entries from the registry. Any help / guidance greatly appreciated....
Here's a stab at it.
 

Attachments

Apr 2, 2011
1,274
3
53
North Carolina, USA
I think he wanted TCMD.
That is why I titled the message thread tcmdhere.btm - NOT tcchere.btm - assuming the latter even exists in the destination foler along with TCC / TCMD / DLLs / etc...
 
Last edited:

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,203
72
Albuquerque, NM
prospero.unm.edu