REQ: tcmdhere.btm mod

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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]
 
#2
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
3,483
44
Albuquerque, NM
prospero.unm.edu
#7
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

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,483
44
Albuquerque, NM
prospero.unm.edu
#12