Single instance/TCMD Here problem

Jun 2, 2008
38
0
Denmark
TCC 10,00,55 Windows XP [Version 5,1,2600]

When the "Single instance" option is turned on, the "TCMD Here" function in Windows Explorer no longer works. The TCMD window is made topmost but it remains in the directory that it was in prevously.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,425
85
Albuquerque, NM
prospero.unm.edu
I wrote my own script to install various registry tweaks, including TCC-here and Take Command tab-here type functionality, batch associations, and AppPaths. You can get it here:

http://www.nmia.com/~raster/RegTweaks.btm

Running this ought to fix your issue. It would be a good idea to back up your registry before running it, though; it makes a lot of changes.
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
TCC 10,00,55 Windows XP [Version 5,1,2600]

When the "Single instance" option is turned on, the "TCMD Here" function in Windows Explorer no longer works. The TCMD window is made topmost but it remains in the directory that it was in prevously.

WAD (as the lesser of two evils). If you have Single Instance enabled, TCMD can't start a new session in the desired directory; but it's also a bad idea to force the existing TCMD to a new directory as it can cause mayhem to programs running in the tab windows.

You need to decide whether the single instance or the "TCMD here" is more important to you.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,425
85
Albuquerque, NM
prospero.unm.edu
WAD (as the lesser of two evils). If you have Single Instance enabled, TCMD can't start a new session in the desired directory; but it's also a bad idea to force the existing TCMD to a new directory as it can cause mayhem to programs running in the tab windows.

You don't need to set the CWD for Take Command, only for the program running in the new tab window. A command like this:

Code:
"C:\BIN\TCmd\tcmd.exe" /t "C:\BIN\TCmd\TCC.EXE" /k *cdd "%1"
works for me whether Take Command is in Single-Instance mode or not, already open or not. It can also be trivially adapted to work with TCI, 4NT, or CMD.EXE.
 
Jun 2, 2008
38
0
Denmark
WAD (as the lesser of two evils). If you have Single Instance enabled, TCMD can't start a new session in the desired directory; but it's also a bad idea to force the existing TCMD to a new directory as it can cause mayhem to programs running in the tab windows.
Hmm, I hadn't quite understood what was meant by single instance.

What I want is that when I have TCMD open and select "TCMD here", I get a new tab in the existing TCMD window. I'll take a close look at Charles' script and see if that will help me to get what I want.

You need to decide whether the single instance or the "TCMD here" is more important to you.
The latter, definitely the latter :)
 
Jun 2, 2008
38
0
Denmark
I wrote my own script to install various registry tweaks, including TCC-here and Take Command tab-here type functionality, batch associations, and AppPaths. You can get it here:

http://www.nmia.com/~raster/RegTweaks.btm

Running this ought to fix your issue. It would be a good idea to back up your registry before running it, though; it makes a lot of changes.
Thanks. I have downloaded a copy.

First of, one little nit. The line:
if not 1.0 == 01 ...
does not travel well. It only works if the decimal separator is "." - and as you have probably guessed by now, where I live, it isn't :)
Here in Denmark (and in lots of other places in Europe) we use comma as decimal separator and dot as thousands separator, i.e. the opposite of what you use.
 
Jun 2, 2008
38
0
Denmark
Code:
"C:\BIN\TCmd\tcmd.exe" /t "C:\BIN\TCmd\TCC.EXE" /k *cdd "%1"
Thanks again, Charles. I modified the existing TCMD here commands to look like this:

Code:
"C:\TCMD10\tcmd.exe" /T "C:\TCMD10\tcc.exe" /K *cdd "%L"
and now it works the way I want it to work.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,425
85
Albuquerque, NM
prospero.unm.edu
Thanks. I have downloaded a copy.

First of, one little nit. The line:
if not 1.0 == 01 ...
does not travel well. It only works if the decimal separator is "." - and as you have probably guessed by now, where I live, it isn't :)
Here in Denmark (and in lots of other places in Europe) we use comma as decimal separator and dot as thousands separator, i.e. the opposite of what you use.

You're right. I have a SETDOS /G, but I guess it doesn't help much with the preceding lines....
 
Similar threads
Thread starter Title Forum Replies Date
C Single Instance not honored? Support 2
Peter Murschall Single-line Do-CMD is a bit uncooperative. Support 6
M Backquoted parameters used in GoSub don't pass string as a single parameter Support 2
A License Question for Single User Support 5
fpefpe How to? Single installer? Support 5
Emilio III Registering TCMD in VM with single license? Support 2
rfaquino How to? Display filename being copied on a single line Support 2
S How to? Installing TCMD for a single language Support 5
vefatica Single-line DO inside nested multi-line DOs? Support 9
S How to? Install single-language version Support 22
E Scrolling output to single, non-scrolling line Support 13
D Fresh instance of TCMD does not use TCMD.INI Support 7
B Batch file won't run if there is already an instance of TC 17 running Support 9
A How to? How do you launch TCC/LE using the already-open instance? Support 5
nikbackm Piping to new TCC instance crashes it Support 1
vefatica Tray min'd TCMD and ACTIVATE Support 6
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
kb6ojs How to? "Specified Account Already Exists" error installing TCMD v27 Support 12
CWBillow TCMD Colors Support 8
Jay Sage Issues With TCMD File Explorer Support 0
C Last TCMD that supports win 7? Support 5
gentzel TCMD background color confusion Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Alpengreis Remaining TCMD background process (v26) ... Support 19
S Windows Server version not being detected correctly in TCMD 26RC2 Support 9
G TCMD crash when copy Support 3
Joe Caverly DrawVLine results different in TCMD tab and detached TCC Support 11
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
nikbackm TCMD 25 - Unregister older TCMD version Support 2
G Documentation on TCMD.INI Support 9
R New Clear Buffer in TCMD Home Menu Support 2
CWBillow Back up TCMD tabs Support 2
CWBillow Upgrade Windows 10's effect on TCMD and TCC Support 3
DrusTheAxe TCMD 24.02.49 x64 crashed due to DivideByZero :-( Support 4
A After update to 24.02.49, helpfile tcmd.chm hangs when opened Support 0
David McClelland TCMD 24 & Perl - perl thinks it's own executable is ...\TCMD24\TCC.EXE??? Support 3
dcantor How to? Can 32-bit TCC be run on a system with 64-bit TCMD and TCC installed? Support 6
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
vefatica What's TCMD's problem with ^e[0m? Support 13
CWBillow TCMD PowerShell Tab elevated Support 6
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
vefatica TCMD output invisible on Win10 Support 22
J Moving from TCC v22 to TCMD v24 issues Support 3
RChrismon How to? Copy TCMD.INI to New Version Support 7
rps TCMD OPTIONS dialog Support 2
rps TCMD Tabs priority option setting Support 0
D Can we fix the scaling for TCmd? Support 14

Similar threads