# TCMD Crashes with "tctoolbar /c /r file"

#### Jay Sage

In my previous version (19) I had found that the /C and /R options could not be combined, so in my scripts I ran two commands, the first with /C to clear the toolbar and the second with /R to reset it to the standard configuration. Today, I decided to see if the two options could not be combined and was shocked to find that the attempt totally wiped out Take Command. I could not even restart it. Eventually I figured out that it was probably still running somewhere out of sight, so I started a TCC window where I could use TASKEND to kill it.

Unless I missed it, the documentation does not say that the two options cannot be combined, and, in any case, the program should not crash if the are.

#### rconn

Not reproducible here - can you post the contents of the file you're specifying with the /R option?

#### Jay Sage

I pared the file down to what is listed below, which still hangs up TCMD when run as

tctoolbar /c /r bar.txt

It works fine if I run the command without the "/c" option. And I can run

tctoolbar /c & tctoolbar /r bat.txt

bar.txt:

[Toolbar1]
Title=Main
B1=257,,CLS,,,esc "cls" enter
B2=257,,RUN,,,"%%@quote[%_selected]" enter
B3=261,,GP,,,esc "gp" enter
B4=257,,DP,,,esc "dp %%@quote[%_selected]" enter
B5=257,,CD,,,esc "cd_clip %%@quote[%_selected]" enter
B6=257,,DESC,,,esc "desc %%@quote[%_selected]" enter
B7=257,,EREN,,,esc "eren %%@quote[%_selected]" enter
B8=257,,REN,,,esc "batrun button_ren %_selected" enter
B9=257,,MOVE,,,esc "batrun button_move %_selected" enter
B10=257,,ED,,,esc "edit %%@quote[%_selected]" enter
B11=257,,PDF,,,esc "pdf %%@quote[%_selected]" enter
B12=257,,V,,,esc "v %%@quote[%_selected]" enter
B13=257,,PASTE,,,"%_selected "

#### rconn

/C and /R has never been a legal combination. When I try your example, I get a popup error message box warning of an illegal parameter.

#### vefatica

Although the file exists, when I try Jay's example, I get this message box.

Code:
v:\> d v:\bar.*
2019-10-10  21:52             642  bar.txt

v:\> tctoolbar /c /r v:\bar.txt

#### rconn

Although the file exists, when I try Jay's example, I get this message box.

Code:
v:\> d v:\bar.*
2019-10-10  21:52             642  bar.txt

v:\> tctoolbar /c /r v:\bar.txt

View attachment 2557

WAD, because it's not a legal combination.

Replies
6
Views
2K
Replies
4
Views
1K
Replies
4
Views
2K
Replies
6
Views
2K
D
Replies
10
Views
2K
Replies
7
Views
2K
Replies
5
Views
4K
Replies
2
Views
179
Replies
1
Views
145
Replies
7
Views
596
Replies
4
Views
205
Replies
7
Views
345
Replies
3
Views
453
Replies
6
Views
276
Replies
2
Views
256
Replies
6
Views
530
Replies
12
Views
412
Replies
8
Views
912
Replies
0
Views
309
Replies
5
Views
578
Replies
6
Views
704
Replies
1
Views
513
Replies
19
Views
1K
Replies
9
Views
1K
Replies
3
Views
699
Replies
11
Views
1K
Replies
1
Views
1K
Replies
6
Views
969
Replies
2
Views
1K
Replies
9
Views
1K
Replies
2
Views
658
Replies
2
Views
768
Replies
3
Views
1K
Replies
4
Views
972
Replies
0
Views
667
Replies
3
Views
845
Replies
6
Views
1K
Replies
5
Views
1K
Replies
13
Views
2K
Replies
6
Views
1K
Replies
5
Views
1K
Replies
22
Views
2K
Replies
3
Views
889
Replies
7
Views
2K
Replies
2
Views
952
Replies
0
Views
671
Replies
14
Views
2K
Replies
4
Views
1K
Replies
1
Views
1K
Replies
16
Views
2K