How to? Launch and execute commands in tcmd.exe through MSBuild Script.

Jul 28, 2015
2
0
Hello , I am new to the Take Command Prompt and i am facing what could be a very basic problem. We have been using tcmd.exe to execute some btm files. However that task was being done manually. I have a task now where in i have to execute the same commands through a MSBuild Script.

I have added the tcmd.exe path in the environment variable (C:\Program Files (x86)\JPSoft\TCMD9\tcmd.exe) on the server and i am trying to execute the below command from the build script.

<Exec Command=">tcmd cd /d &quot;$(SolutionRoot)\&quot;" ContinueOnError="false" />
<Exec Command=">tcmd &quot;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat&quot;" ContinueOnError="false" />
<Exec Command=">tcmd &quot;$(SolutionRoot)\_PackAll.btm&quot;" ContinueOnError="false"/>

The problem is that these commands are being executed on the CMD.exe instead of tcmd.exe. So the first and the second command run fine however nothing executes on the 3rd command.

So just wanted to know if there is a way through which we can execute commands on tcmd.exe through MSBuild script.
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
As Charles said, you probably want to be using TCC, not TCMD. You can execute batch files either directly with TCC, or indirectly by having TCMD call TCC. To do the latter, you need to associate TCC with batch files so TCMD will know what to call.

For build scripts, it's probably better to use TCC directly, as it will be much faster and you don't need the TCMD GUI.
 
Jul 28, 2015
2
0
As Charles said, you probably want to be using TCC, not TCMD. You can execute batch files either directly with TCC, or indirectly by having TCMD call TCC. To do the latter, you need to associate TCC with batch files so TCMD will know what to call.

For build scripts, it's probably better to use TCC directly, as it will be much faster and you don't need the TCMD GUI.
Thanks a lot Charles and rconn for your suggestion. I would try this out in the script and would share that on this thread. Thanks again for your time.
 
Similar threads
Thread starter Title Forum Replies Date
C TC 18.0 won’t launch. Support 1
A How to? How do you launch TCC/LE using the already-open instance? Support 5
Paul Hsieh Take Command does not launch GUI at all for me anymore. Support 3
A Stupid, obvious question - launch a BAT with TC Support 10
mikea Error when attempting to launch "Safe in Cloud" Support 3
samintz WAD Help won't launch Support 5
nikbackm Alias - launch external program - batch file Support 16
Peter Bratton Help won't launch Support 3
Y BDEBUGGER does not launch Support 8
Spire TCC 10.0.0.57: Crash on launch in Secur32.dll Support 3
M Tab button to launch as different user Support 1
deleyd Commands to launch Control Panel items? Support 10
vefatica Can't execute @ALIAS[...] Support 5
Jay Sage Short File Name Won't Execute Support 4
MickeyF how to determine which program will execute a file Support 10
S Need help to execute TCC commands on another system Support 6
K btm execute ondouble click Support 8
J 4NT Error when running 'system' from a program to execute a .BTM Support 3
vefatica Console not redrawn in BTM or with multiple commands Support 4
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
kb6ojs ALIAS with multiple commands? Support 9
R Long commands retrieved from command history have blank line when wrapped Support 20
vefatica Timing commands with $= in the prompt? Support 16
A Fixed v25 regression: Parameter expansion fails in piped commands Support 2
A Key Commands missing? Support 3
Dick Johnson New database commands Support 8
F Regexes in REN/MOVE/… commands seem to not work at all Support 3
gentzel Bug launching external commands in 20.11.43 Support 11
M Keywords for commands, functions, internal variables Support 3
M Disable commands? Support 2
D Fixed 20.10 strangeness with external commands Support 9
thedave Problem chaining piped FIND commands in BTM Support 7
D Some commands are not displaying their command dialog Support 2
C MONITOR commands alter tab title when triggered Support 0
Alpengreis Documentation TC Help v18.x "Commands by Category" is incomplete Support 0
D WAD TASKBAR window commands confuses our friends at MS Support 4
Stefano Piccardi list of TCC commands for external editors Support 4
I tab completion with directory commands Support 7
I most used commands Support 2
mikea How to? TCC and ftp:// commands Support 7
R Override TCC internal commands Support 2
S Directory history entries from /S option of various commands Support 2
M A simple question related to the "dir" (and "pdir") commands... Support 5
R TC 13 / Using TCDIALOG to exit commands Support 4
J syntax problems multiple commands (command & command) Support 4
C User error with low level file* commands Support 8
electrotype keyboard shotcuts to send commands to a TCC tab? Support 8
Charles Dye Updated _bat.schclass with v11 new commands/keywords Support 1
L Vista 64 bits missing commands Support 1

Similar threads