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

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 9, 2013
40
0
#1
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
#3
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?)
 
May 9, 2013
40
0
#7
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?
 
#8
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
#9
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,203
11
Solon, OH, USA
#10
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
 
Likes: Mordachai