How to get a TC interface instead of a console for .btm, .bat, ?

May 9, 2013
40
0
After successfully running tccbatch, when I double click a .bat file, I get a console host window.

I can run TC - and if I have "automatically attach consoles" setting on, it will grab the console into a tab.

But how can I make it always start TC in the first place?
 
May 9, 2013
40
0
Where would I find such a file?
Code:
 Directory of  C:\Program Files\JP Software\Take Command x64 15.01\*.btm
 
1/09/2013  13:13          1,002  tccbatch.btm
4/03/2013  9:12          1,170  tcchere.btm
1/09/2013  13:13          1,272  tcctabhere.btm
4/03/2013  9:17          1,204  tcmdhere.btm
            4,648 bytes in 4 files and 0 dirs    16,384 bytes allocated
I could probably synthesize a tcmdbatch.btm, but I assume there is one provided someplace?

NOTE: code-blocks in the forum should default to a fixed-space font (lucida console?)
 
Jan 19, 2011
604
14
Norman, OK
NOTE: code-blocks in the forum should default to a fixed-space font (lucida console?)

I'm pretty sure that it is a monospaced font. Only problem is that sometimes it loses spaces in the pasted text.
 
  • Like
Reactions: Mordachai

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,446
88
Albuquerque, NM
prospero.unm.edu
He did use a CODE block. I don't know why those columns don't quite line up, but it may be relevant that the missing spaces happen in rows containing a time with a one-digit hour.
 
May 9, 2013
40
0
I just copied / pasted from a TCC window. I assumed the misalignment was due to variable width font - but apparently that's not the case. Not sure what caused it?
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Sorry, I responded to the posted message, and failed to "escape" the "code" / "/code" format tags, thus creating a hard to read post.

I always use ISO timestamps, never seen this vertical misalignment. However, I have seen leading and multiple space suppression, but do not recall exact circumstances.
 
May 9, 2013
40
0
So this thread becomes:

[BUG] tcmdbatch.btm IS MISSING FROM TC 15.01
Code:
Directory of  C:\Program Files\JP Software\Take Command x64 15.01\*.btm
 
1/09/2013  13:13          1,002  tccbatch.btm
4/03/2013  9:12          1,170  tcchere.btm
1/09/2013  13:13          1,272  tcctabhere.btm
4/03/2013  9:17          1,204  tcmdhere.btm
            4,648 bytes in 4 files and 0 dirs    16,384 bytes allocated
 

samintz

Scott Mintz
May 20, 2008
1,501
16
Solon, OH, USA
I have a version that came with TCMD 13. Here it is. Copy this to TCMDBatch.btm.
Code:
@echo off
rem  TCMDBatch.btm
rem  This batch file associates .BAT, .BTM, and .CMD files to Take Command
 
iff %_dosver ge 6.0 then
    echo If you are running Windows Vista, you must first start a Take Command
    echo session as an administrator (right click on the TCMD icon and select
    echo "Run as administrator") echo and then run TCMDBatch.btm in that session.
endiff
 
echo.
echos Do you want to make Take Command the default handler for .BAT files [Y/N] ?
inkey /k"yn[enter]" %%var
 
iff "%var" eq "y" then
assoc .bat=batfile
ftype batfile="%@path[%_cmdspec]tcmd.exe" /c "%%1" %%*
endiff
 
echo.
echos Do you want to make Take Command the default handler for .BTM files [Y/N] ?
inkey /k"yn[enter]" %%var
 
iff "%var" eq "y" then
assoc .btm=TCMD.Batch
ftype TCMD.Batch="%@path[%_cmdspec]tcmd.exe" /c "%%1" %%*
endiff
 
echo.
echos Do you want to make Take Command the default handler for .CMD files [Y/N] ?
inkey /k"yn[enter]" %%var
 
iff "%var" eq "y" then
assoc .cmd=cmdfile
ftype cmdfile="%@path[%_cmdspec]tcmd.exe" /c "%%1" %%*
endiff
 
  • Like
Reactions: Mordachai
Similar threads
Thread starter Title Forum Replies Date
x13 Function to get interface user-defined name? Support 10
T TC 16: no menus, interface distorted Support 6
L Interface Corrupt (16.0027) Support 2
Joe Caverly COM Interface Support 29
p.f.moore Is the TakeCommandIPC interface available from other console programs? Support 3
samintz email interface messed up again Support 1
D SYNC /W copies back instead of propagating a delete Support 2
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
A Reinstalling TCC-RT 21.01.57 triggers a new install instead of update/reinstall Support 3
Exolon V17 beta, debugger: STRG-S is inserting character instead of saving Support 12
D Documentation ? linked to _? instead of ? Support 0
Stefano Piccardi how to get error message instead of beep? Support 5
gschizas View uses Windows-1252 codepage instead of System codepage Support 4
R FILES.BBS instead of DESCRIPT.ION Support 13
vefatica Console not redrawn in BTM or with multiple commands Support 4
vefatica ShutdownPlugin not called when I X the console? (just curious) Support 4
vefatica Console popup windows don't work correctly Support 0
vefatica Cancelling selection in the console? Support 7
G Console exe up / down history Support 8
vefatica Console cursor height in Win 10 Support 3
vefatica BTM, elevated, console window caption? Support 4
vefatica TCEXIT not executed if I X the console Support 4
vefatica TYPE resets console tab settings Support 14
vefatica Undesired scrolling in Windows 10 enhanced console. Support 2
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
P No linefeed on last line of console window Support 2
fishman@panix.com TCC v22 & the Windows 10 Console Support 5
C TCMD not hiding the console Support 1
jaltman tcmd 21.0.19 win10 16179 console window loses content Support 2
vefatica Console output slower that before Support 8
L Fixed console line length in Take Command 19? Support 3
P Color directories in Win10 build 10586 console Support 11
Mordachai How to capture all console output from a TCMD session? Support 4
I Windows 10 console does not allow alt-F4 alias to complete Support 1
M Console-Mode (*.exe) works in TCC, not in TCMD Support 2
vefatica ON CLOSE, GOTO, and X-ing the console Support 5
I Attach console Support 3
C Screens of different size and hidden console Support 8
G Bug? TCC 16.03.55 Console Palette Support 4
C TCMD: Problem attaching console Support 4
vefatica OT: Windows console history? Support 7
D Console window titles / tab caption Support 4
vefatica ON <closing the console> Support 5
J Screen Capture (Console Mode) Support 5
vefatica Complete console caption as TCMD's caption? Support 1
fpefpe How to? Fonts / Size in console window Support 5
A How to? Is it possible to freeze one side of the console? Support 19
Stefano Piccardi How to? keep console from scrolling Support 6
noahcoad @ruby closes console Support 2
noahcoad Start new console without focus Support 3

Similar threads