By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!Look at the BTM files that @Charles Dye mentioned. All they do is create a few registry entries which put TCC/TCMD on the right-click context menu. There are other BTMs for making one of them the default handler for BTMs (and optionally, BATs and CMDs).Thanks! But these BTM files seem to make TakeCommand to any kind of default application (which I do not want).
@echo off
do key in /L HKCR\test\Directory HKCR\test\Directory\Background HKCR\test\Drive
if %@regcreate["%key\Shell\TCC\command"] NE 0 (echoerr Failed to create %key & quit)
if %@regset["%key\Shell\TCC\",REG_SZ,TCC prompt here] NE 0 (echoerr Failed to update %key\Shell\TCC\ & quit)
if %@regset["%key\Shell\TCC\command\",REG_SZ,"%_cmdspec" /k *cdd "%%L"] NE 0 (echoerr Failed to update %key\Shell\TCC\command\ & quit)
enddo
echo.
echo The Windows Explorer context menus have been updated.
c:\users\vefatica\desktop> .\tcchere.btm
The Windows Explorer context menus have been updated.
c:\users\vefatica\desktop> regdir /v /d hkcr\test
hkcr\test
Directory
Background
Shell
TCC
: REG_SZ : TCC prompt here
command
: REG_SZ : "D:\TC28\TCC.EXE" /k *cdd "%L"
Shell
TCC
: REG_SZ : TCC prompt here
command
: REG_SZ : "D:\TC28\TCC.EXE" /k *cdd "%L"
Drive
Shell
TCC
: REG_SZ : TCC prompt here
command
: REG_SZ : "D:\TC28\TCC.EXE" /k *cdd "%L"
c:\users\vefatica\desktop>
c:\users\vefatica\desktop> .\tcchere.btm
Failed to create HKCR\test\Directory
c:\users\vefatica\desktop>
Yeah, thanks! I have %V in all three places (dir, dir_background, and drive). I just copied the %L from TCCHere.btm when I posted recently. I vaguely recall a bit of a struggle getting it to work the first time. This (below) still targets HKCR\test, but I've changed %L to %V.Hey Vincent:
Have you tried this? Does it work for you?
Here (Windows 10/2004) your "TCC prompt here" background menu item gives an error message. Looks like Explorer doesn't appreciate %L in this context...? Works better for me after substituting %V for %L.
@echo off
do key in /L HKCR\test\Directory HKCR\test\Directory\Background HKCR\test\Drive
if %@regcreate["%key\Shell\TCC\command"] NE 0 (echoerr Failed to create %key & quit)
if %@regset["%key\Shell\TCC\",REG_SZ,TCC prompt here] NE 0 (echoerr Failed to update %key\Shell\TCC\ & quit)
if %@regset["%key\Shell\TCC\command\",REG_SZ,"%_cmdspec" /k *cdd "%%V"] NE 0 (echoerr Failed to update %key\Shell\TCC\command\ & quit)
enddo
echo.
echo The Windows Explorer context menus have been updated.