Background Menu

Nov 2, 2008
231
2
Here is an interesting registry setting you might want to squeeze into 4nt etc. This is on my windows 2000 box, the TCMD is that ancient gui prompt similar to TCMDOS2. I think it was called tcmd32. My windows 2000 box is stuck on 8.01/ini, because i did not like the 8.02 icons. This is actually derived from some proggie cmdhere or something like that.

[HKEY_CLASSES_ROOT\Directory\Background\shell\tcmdhere]
TCMD Here

[HKEY_CLASSES_ROOT\Directory\Background\shell\tcmdhere\command]
@="tcmd.exe /k *cdd %1"

What this does, is when you click on an open folder's background, you get a popup menu. Might be a useful addon for your 'install tcc thing'.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
Here is an interesting registry setting you might want to squeeze into 4nt etc. This is on my windows 2000 box, the TCMD is that ancient gui prompt similar to TCMDOS2. I think it was called tcmd32. My windows 2000 box is stuck on 8.01/ini, because i did not like the 8.02 icons. This is actually derived from some proggie cmdhere or something like that.

[HKEY_CLASSES_ROOT\Directory\Background\shell\tcmdhere]
TCMD Here

[HKEY_CLASSES_ROOT\Directory\Background\shell\tcmdhere\command]
@="tcmd.exe /k *cdd %1"

What this does, is when you click on an open folder's background, you get a popup menu. Might be a useful addon for your 'install tcc thing'.
w_kreiger, are you saying you have seen that work? In my experience, that works if you have a "proggie" (a context menu handler DLL) but not via the ordinary shell\verb\command mechanism.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
I had always thought this didn't work for Directory\Background. But I have always tried it using "%L". It does, in fact, work if I use "%V" (emulating a Win7 action for CMD which you see only if you Shift-RightClick). This, below, simply works (without Shift). It gives "17Here" when you right-click on the background of an Explorer window AND ALSO (I like this) when you right-click on the desktop. Something like it would be a handsome addition to *HERE.BTM.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC17]
@="17Here"

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC17\command]
@="g:\\tc17\\tcc.exe /k cdd \"%V\""
 
May 20, 2008
11,411
99
Syracuse, NY, USA
As a matter of fact, no command or arguments at all are needed for a "TCCHere" to work with Directory\Background (including the desktop). This works fine.
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC17]
@="17Here"

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC17\command]
@="g:\\tc17\\tcc.exe"
 
Nov 2, 2008
231
2
4nt is handled by a DLL '4nthere.dll', so you don't see the registry key for it. I found the registry key in the setup-superimpose directory.

tcmd was a jp product tcmd32.exe which i 'integrated' with 4nt, (one does this ever since tcmd came out). It's not handled by 4nthere.dll, so it has a registry thing which is what i quoted. console2 was the other program in that key. Windows 8.1 has it for cmd.exe.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
4nt is handled by a DLL '4nthere.dll', so you don't see the registry key for it. I found the registry key in the setup-superimpose directory.

tcmd was a jp product tcmd32.exe which i 'integrated' with 4nt, (one does this ever since tcmd came out). It's not handled by 4nthere.dll, so it has a registry thing which is what i quoted. console2 was the other program in that key. Windows 8.1 has it for cmd.exe.
The only 4nthere.dll I know of is one I wrote (actually, I hacked a KB example) many, many years ago. I called a little attention to it but it never got much circulation. I still use it in 32-but Windows 7. I am/was not looking forward to trying to bring it into the 64-bit world. I only used it because I thought directory\background couldn't be done with the usual shell\action\command mechanism. I was pleased to discover that I was wrong and 4nthere.dll (newer ones are tcchere.dll) may soon be forgotten.
 
Nov 2, 2008
231
2
It works with tcc v16 x64 on windows '8.1" 4nt has never been on this box.

But thank you for 4nthere, it solve many an hour's back and forth.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
FWIW, below (and attached) is TCCHereEx.btm. It differs from TCCHere.btm in that (1) it also affects "Directory\Background" (which includes the desktop) and (2) it gives the user the opportunity to change the text which appears on the context menu. Comments and improvements are welcome.
Code:
@echo off
rem  TCCHereEx.btm ... add "TCC prompt here" entry to Explorer context menu

setlocal
on break goto outofhere
on errormsg goto outofhere

set text=TCC prompt here

iff "%_elevated" NE "1" then
  echo This BTM file must be run in an elevated session.
  goto outofhere
endiff

echo ^r^nDo you want to add a "%text" entry to the Windows Explorer
echo context (right click) menus for directories, drives, and
echos directory backgrounds [Y/N] ?
inkey /k"yn[enter]" %%var

if "%var" ne "y" goto outofhere

echo ^r^nThe text "%text" will appear in the context menu.
echos Do you want to change that text? [Y/N]
inkey /k"yn[enter]" %%var

if "%var" eq "y" eset text

do key in /L Directory Drive Directory\Background
   iff   %@regcreate["HKCR\%key\Shell\TCC\command"] != 0 .or. ^
     %@regset["HKCR\%key\Shell\TCC\",REG_SZ,%text] != 0 .or. ^
     %@regset["HKCR\%key\Shell\TCC\command\",REG_SZ,"%_cmdspec" %@if["%key" != "Directory\Background",/k *cdd "%%%%L",]] != 0 ^
   then
     goto outofhere
   endiff
enddo

echo The Explorer context menus have been updated.
quit

:outofhere
echo The registry was not updated.
 

Attachments

  • TCCHereEx.btm
    1.1 KB · Views: 65
Nov 2, 2008
231
2
You could do something like run this:

Code:
set text =%_Cmdproc Prompt Here
:textloop
echo TCCHere will now create context menu entries to launch %_cmdproc
echo on the drives and folder icons, and on the background of an open folder.
echo.
echo Edit the text or press [enter] to accept it.
echo To cancel this action, press [esc] and then [enter].
set text_ = %text
eset %text
if "%text%"=="" then goto :outofhere
if not "%text"=="%etext_%" goto :textloop
:: fallthrough



This will fall out if the text is the same as the text_, on any number of edit attempts.
 
Last edited:
Similar threads
Thread starter Title Forum Replies Date
gentzel TCMD background color confusion Support 6
Alpengreis Remaining TCMD background process (v26) ... Support 19
T TCC Window Background Color Anomaly Support 9
A Fixed [23.0.22]: TCMD crashes shortly after start, TCC keeps running in background Support 6
forbin Strange handling of [nonbright] magenta background (v22) Support 2
K TCC prompt background color Support 4
M Why does HELP keep opening in the background? Support 0
V TCC17 background color problem Support 2
G How to? Trying to create TCC shortcut that opens with blue background (on Windows 8.1 x64) Support 1
Roedy Screen background colours Support 1
mscheuner Background color not "sticking" in TCMD v11 x64 on Win7 Support 3
nikbackm TCMD10 tab background color Support 5
A Selecting text is very dificult with a background image Support 1
p.f.moore TCMD 10 - Background Image not working Support 17
J Blue Background TC9 Support 4
M Background colors in TCC prompts (version 9.x) Support 5
samintz How to? Context Menu Support 1
R Documentation Help Nit > bdebugger View Menu Support 0
S Debugger menu absent Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Changes to BDEBUGGER menu item keyboard shortcuts in v25 Support 2
R New Clear Buffer in TCMD Home Menu Support 2
CWBillow Context menu extensions for TCC/TCMD v18? Support 1
vefatica Pasting into TCMD via right-click menu? Support 2
R How to? Change TCMD tab font size in window menu Support 3
fishman@panix.com How do I make the selections in the option menu sticky? Support 23
cgunhouse Ctrl + Shift keys and Paste (drop down menu and V) Support 4
Mezlo menu batch file questions Support 25
jbanaszczyk TCMD 16 - Context menu Support 3
C How to? create a JPSoft BTM menu to run custom custom batch files Support 2
D No "Format" in right-click menu for DVD Support 11
vefatica OT:Explain Win7's "start menu" folder? Support 17
vefatica Context menu "Add to watch"? Support 5
P Lock Explorer/Menu/Tabbed tool Bar Support 2
D Always get shortcut in Start Menu folder Support 6
K popup menu size Support 2
CWBillow Context Menu "Open With" Support 10
A Cannot permanently remove Tabs toolbar using View menu - bug? Support 8
C Utilities menu has gone ? Support 7
B Keys in debug menu not working in bdebugger Support 1
M "Shortcut key" on Windows start menu shortcuts Support 5
H Edit/Debug menu item with alternate INI files Support 0

Similar threads