Button command issue

Jun 4, 2013
When trying to setup a command to run in a button I get the following problem. If anyone can help me figure out how to fix it I would appreciate it.

Putting in the following command in the command box: c:\program files\programname\program.exe -remote or "c:\program files\programname\program.exe -remote" or "c:\program files\programname\program.exe" -remote

Results in the following going into the current command window/tab: c:\program files\programname\program.exe-remote or "c:\program files\programname\program.exe" -remote or "c:\program files\programname\program.exe-remote"

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
Are you trying to run a command (the "Start a new window" radio button should be checked), or send keystrokes to the current window ("Send to the current tab")? If the latter, then the string should be in KEYSTACK format; see HELP KEYSTACK for details. You probably want something like this:

""c:\program files\programname\program.exe"" " -remote"
Jun 4, 2013
I tried that as well when I saw it in another thread but that did not work for me. I tried to launch it in a new window and have it enter it into a current tab. In a new window nothing happens. In the current tab it puts in the command but no spaces. Not sure if it's something I am doing wrong or what but I will try and get a screenshot of the button so you can see it for yourself.
Jun 4, 2013
Ok I found the problem. The shortcut for the program uses a ~ character in the path and TCC does not like it. I put in the full path and the application launches correctly and also pastes into a current tab when I set it up that way. I am not sure why the tilde character was throwing it off like that. I have not seen it in other paths either so that could be something I need to keep in mind.
Jun 4, 2013
It's 15.00.29 x64. It's possible it is new but I got it working so that is all I care about. Normally programs don't have tilde's in their path. I think it's probably due to the fact it's a legacy app.
Similar threads
Thread starter Title Forum Replies Date
D Double Quote in TC Tool Bar Button Command line Support 3
E Command History not showing on up arrow button Support 8
Joe Caverly No dash in Command Tool Bar Button Support 1
Alpengreis Fixed 0xc0000005 while try to create a button (Schaltfläche) Support 4
Glenn Bowes WAD TOOLBAR Button Definations are different v19 to v20 Support 8
Alpengreis [v19.0.32 (x64)] Problem with [Options, Tabbed Toolbar, Add Button] in german language Support 1
T Fixed V18 debugger crashed on save button Support 1
T Fixed V18 debugger crashed on stop button Support 2
vefatica How do I get rid of this button? Support 1
cgunhouse Button Cause TCMD V17 to Crash Support 3
D TCMD16 Delete Toolbar Button bug Support 7
S How to? Use Forum "feedback" button to open in a new tab Support 3
cgunhouse ToolBar Button Problem Support 11
vefatica ON *BUTTON? Support 11
D "Learn More" button on home page not working Support 3
Stefano Piccardi forum: what's new button Support 7
Y Close button on tabs Support 7
Stefano Piccardi IDE.exe start toobar button fails when % in script path Support 0
krischik Button changes not saved Support 5
krischik Tab and Button Icons in Window 64 Support 2
R Button label is blank - 11.00.48 Support 0
p.f.moore TC 11 - can the tabs on the button bar be switched off? Support 6
Y V11 Button Tab Support 7
M Tab button to launch as different user Support 1
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 5
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0

Similar threads