TCC won't close after .btm execution

Jul 7, 2008
35
0
Texas, USA
I'm testing latest TCMD version/build before upgrading and ran into a weird problem: when I double click on a .btm file it opens and runs in a TCC window, but once the batch is complete, the TCC window doesn't close.

It tried to deassociate .btm and then reassociate it, but that made no difference. Also tried to reinstall Take Command which also had no effect on the problem.

Any ideas what might cause this and how I could fix it?
 
Aug 9, 2009
230
1
add EXIT to end of batch


> -----Original Message-----


> Subject: [Support-t-2529] TCC won't close after .btm execution
>
>
> I'm testing latest TCMD version/build before upgrading and ran into a
> weird problem: when I double click on a .btm file it opens and runs
> in a TCC window, but once the batch is complete, the TCC window
> doesn't close.
>
> It tried to deassociate .btm and then reassociate it, but that made
> no difference. Also tried to reinstall Take Command which also had no
> effect on the problem.
>
> Any ideas what might cause this and how I could fix it?
>
>
>
>
 

rconn

Administrator
Staff member
May 14, 2008
12,365
150
> Apparently something changed between v11 and v12 that made issuing exit
> necessary to close the execution window when evoking a script by double-
> clicking on its icon..?

No - you just need to change your batch file association to say "TCC /C
...". The /C tells TCC to close when the batch file exits.

If you run the TCCBATCH.BTM file in your v12 installation folder, it will
make the changes for you.

Rex Conn
JP Software
 
Jul 7, 2008
35
0
Texas, USA
No - you just need to change your batch file association to say "TCC /C
...". The /C tells TCC to close when the batch file exits.

If you run the TCCBATCH.BTM file in your v12 installation folder, it will
make the changes for you.
Running tccbatch.btm did not fix it. Apparently something had gone wrong with the association. I first ran

assoc .btm=
ftype TCC.Batch=

to deassociate .btm. However, even after that a definition still remained in the registry for .btm. Once I deleted it, I could then recreate the association correctly by running tccbatch.btm. Now it works.
 
Similar threads
Thread starter Title Forum Replies Date
Per TCC/LE 14 64-bit won't start on Windows 10 Insider Preview 17063 (171213) Support 12
S Fixed TCC.EXE 13.03.47 won't run Support 4
D TCC won't run telnet on Windows 7 RC1 Support 5
vefatica TCC startup: /IP not honored after /K Support 1
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
M Strange error messages from TCC in FTP copy Support 7
Kachupp Documentation tcc-rt versions Support 1
V Comments from a first-time user (TCC 26) Support 6

Similar threads