TCMD: Problem attaching console

1) I lauch CMD with a .BAT (from another project in my company; sets many environment variables)
2) I run TCC from CMD.
3) I run TCMD and want to attach the console from (1-2).

- If I try (3) to attach after (1), I see the console in TCMD's dialog, but I get an error [Un périphérique attaché au système ne fonctionne pas correctement/A device attached to the system does not work correctly. "AttachConsole"], the console disappears from the task bar, but does not show in a TCMD tab.
- If I try (3) to attach after (2), I even don't see the console in TCMD's dialog.

I don't see if I am doing something wrong, or if I am unwittingly making something worse.

TCC 16.03.54 x64 Windows 7 [Version 6.1.7601]
 
I hunted it down. The set of scripts run by CMD terminates with a "start /d<some-dir> /b CMD.exe". I don't understand why someone wants to start CMD from CMD, but the "/b" of "start" should be what interferes with the handling of windows/consoles and the way TCMD attaches the console.
 
These scripts are copied and/or reused from project to project—I guess nowadays noone knows any more the reasons for writing this. In fact I don't see a reason to run CMD at the end of a script in the first place, even less to START CMD—and the START /B CMD is probably there to avoid flickering with windows.
The broken AttachConsole surprised me, but I understand there is nothing to do about it.
 
Similar threads
Thread starter Title Forum Replies Date
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
vefatica What's TCMD's problem with ^e[0m? Support 13
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
gentzel Fixed TCMD 20 beta @REGEXSUB problem Support 6
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
jbanaszczyk LUA, tcmd.chm, TCC/LE problem Support 0
rps How to? Portable TCMD display problem Support 2
fromano Problem Installing TCMD 15.01.44 Support 2
D unzip problem in tcmd 12 b 36 Support 3
S "List" decoding problem And TCMD crash. Support 0
S "List" decoding problem And TCMD crash. Support 6
Jay Sage Problem Launching Google Earth from TCMD Support 17
E Single instance/TCMD Here problem Support 7
B Wierd install problem for TCMD 10 Support 4
MickeyF equivalent to TCSTART.btm for TCMD? Support 4
D Fixed TCMD /X option Support 7
vefatica TCMD hides itself! Support 3
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
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
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