REQ: tcmdhere.btm mod

Apr 2, 2011
1,607
15
55
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
12,173
133
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,689
106
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

  • tcchere.btm
    1.8 KB · Views: 138

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,689
106
Albuquerque, NM
prospero.unm.edu

Similar threads