Updating from TC 9 to TC 17 - TCTOOLBAR question

May 21, 2008
21
0
In TCMD 9, I have a startup .btm that sets up my aliases and configures the toolbar depending on the software installed. (I use it at work and at home.)

The first toolbar command it does is

*TCTOOLBAR 1,1,,IrfanView,,esc "@irfan" enter

Where irfan is an alias : "C:\bin\IrfanView\i_view32.exe"

Entering that command in v17.00.64 x64 causes TCMD to vanish. (TCC is still running detached.)

I look at the help and it seems that what has changed is that now there is an initial "tab" argument.

I try: *TCTOOLBAR 1 1,1,,IrfanView,,esc "@irfan" enter
and TCMD vanishes.

The help page seems confused whether the flag should be 257 or 1 to be in the current window.

I try creating that same button using Options/TabbedToolbar/AddButton, and I get a greyed out button with a label of "IrfanView" and hover text of "esc "@irfan" enter", but I cannot click it.

Also, when I first start TCMD, if I do a Tabs/AttachTabs, the list shows "TCC Prompt", but if I select it, I get:

---------------------------
Take Command 17.0
---------------------------
The handle is invalid.

"AttachConsole"
---------------------------
OK
---------------------------
 

rconn

Administrator
Staff member
May 14, 2008
12,315
148
Your first example:

Code:
1,1,,IrfanView,,esc "@irfan" enter

Is setting the button to #1, flags to 1 (which sends the string to the active tab), no icon, the button label to "IrfanView", the tab title to nothing, the startup directory to "esc "@irfan" enter" (which isn't going to work very well), and the command to nothing.

Assuming you don't want to set the label or startup directory, you need another ',' before the command:

Code:
1,1,,IrfanView,,,esc "@irfan" enter

In build 66 (which will be uploaded today) I have fixed the TCMD crash when passing bad parameters.
 
Similar threads
Thread starter Title Forum Replies Date
C How to? Error updating from 20.00.16 to 20.00.21 Support 10
vefatica Error updating Support 2
fishman@panix.com How about updating the version shown when you upload a new one? Support 4
Dmitry L. Kobyakov How to clean from the broken updating? Support 3
M Updating environment variable from C++ fails erratically in version 14... Support 57
T Calling a BTM-file from explorer stops at promt after updating to 14 Support 7
R crash updating from 24 to 25 Support 1
R Crash in updating Support 2
D odd experience updating tcmd 13 Support 2
vefatica Updating titles? Support 5
H problem with updating to build 41 Support 3
vefatica Updating v10: error wrong file size Support 2
vefatica Updating b44->b45 Support 1
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
Glenn Bowes Documentation TCTOOLBAR Support 3
D V19: toolbar /r "path\tctoolbar.ini" Support 1
Jay Sage TCTOOLBAR Problem in TCMD15 Support 3
T TCTOOLBAR /C & TCTOOLBAR /I should reload toolbar from TCMD.INI, right? Support 1
T TCTOOLBAR syntax Support 0
Jay Sage More Problems with TCTOOLBAR Support 0
Jay Sage Renewed Problems with TCTOOLBAR Command in TCMD11 Support 1
C forum Posting Question... Support 3
C question re: Move Support 3
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
Peter Murschall Documentation Question to %@PSHELL Support 4
Fross Tab Question Support 6
Fross Quick Function Question Support 17
Dick Johnson Question about the Touch command Support 0
rps Documentation "Copy+Paste+run" question Support 2
vefatica SFTP question Support 17
vefatica Question about IPWorks Support 0
C How to? SHORTCUT question..... Support 6
vefatica TPIPE, crash and question Support 1
C Question / Suggestion Support 1
MickeyF Another TPIPE question Support 6
vefatica Another @EVERYTHING question Support 4
mikea How to? %@everything[] question Support 10
A License Question for Single User Support 5
Jay Sage Help Correction (and Related Question) Support 0
S Elapsed time in TCC prompt question Support 0
H command line parsing question Support 5
C Forum question Support 2
B Newbie here, I have a question. Support 4
J Dumb Question ... Support 4
M A possibly stupid question about the "del" command... Support 7
M A just out of curiosity question re @DiskTotal Support 4
Fross Status Bar Time Question Support 1
A Stupid, obvious question - launch a BAT with TC Support 10
C How to? GLOBAL question Support 5
vefatica OT: VisualStudio question Support 1

Similar threads