command that launches batch file running TCMD?

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
what would a DOS command be that says run this batch file using TCMD (instead of running using whatever the default is that's not TCMD)?

c:\bin\tcmd\tcc.exe /c mybatch.bat

(Substitute the actual path to wherever Take Command is installed.) Similarly, you can launch a batch file in a Microsoft shell using

c:\windows\system32\cmd.exe /c mybatch.bat

c:\dos\command.com /c mybatch.bat

Again, you would substitute the correct path to your CMD.EXE or COMMAND.COM.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Sun, 01 Mar 2009 20:56:11 -0600, Charles Dye <> wrote:

|---Quote (Originally by deleyd)---
|what would a DOS command be that says run this batch file using TCMD (instead of running using whatever the default is that's not TCMD)?
|---End Quote---
| c:\bin\tcmd\tcc.exe /c mybatch.bat
|
|(Substitute the actual path to wherever Take Command is installed.) Similarly, you can launch a batch file in a Microsoft shell using

That won't start TCMD.

Does the OP realize that TCMD doesn't run batch files? It can be a "wrapper"
for TCC (which does run batch files). If the OP really wants to start TCMD and
run a batch file with TCC, he could

[path\]tcmd.exe /t [path\]tcc.exe [/c] batfile.bat
--
- Vince
 
May 20, 2008
3,515
4
Elkridge, MD, USA
vefatica wrote:
| On Sun, 01 Mar 2009 20:56:11 -0600, Charles Dye <> wrote:
|
|| ---Quote (Originally by deleyd)---
|| what would a DOS command be that says run this batch file using TCMD
|| (instead of running using whatever the default is that's not TCMD)?
|| ---End Quote--- c:\bin\tcmd\tcc.exe /c mybatch.bat
||
|| (Substitute the actual path to wherever Take Command is installed.)
|| Similarly, you can launch a batch file in a Microsoft shell using
|
| That won't start TCMD.
|
| Does the OP realize that TCMD doesn't run batch files? It can be a
| "wrapper" for TCC (which does run batch files). If the OP really
| wants to start TCMD and run a batch file with TCC, he could
|
| [path\]tcmd.exe /t [path\]tcc.exe [/c] batfile.bat

Could the OP refer to V8 or earlier? If, TCMD could be correct...
--
Steve
 
vefatica wrote:
| On Sun, 01 Mar 2009 20:56:11 -0600, Charles Dye <> wrote:
|
|| ---Quote (Originally by deleyd)---
|| what would a DOS command be that says run this batch file using TCMD
|| (instead of running using whatever the default is that's not TCMD)?
|| ---End Quote--- c:\bin\tcmd\tcc.exe /c mybatch.bat
||
|| (Substitute the actual path to wherever Take Command is installed.)
|| Similarly, you can launch a batch file in a Microsoft shell using
|
| That won't start TCMD.
|
| Does the OP realize that TCMD doesn't run batch files? It can be a
| "wrapper" for TCC (which does run batch files). If the OP really
| wants to start TCMD and run a batch file with TCC, he could
|
| [path\]tcmd.exe /t [path\]tcc.exe [/c] batfile.bat

Could the OP refer to V8 or earlier? If, TCMD could be correct...
--
Steve

OK I'm no expert at Take Command probably didn't ask the question right, so here's an example:

If I go to START -> ALL PROGRAMS -> ACCESSORIES -> COMMAND PROMPT, and enter the command:
>COPY X.TXT Y.TXT
it replies, "1 file(s) copied."

If instead I start up the TC command prompt with the black background, I guess it's saying it's TCC, hmm, I'm not sure how to get the one with the white background, I think they both were together in the beginning and I somehow closed all the other windows leaving just the window with the black background.

Anyway, if at that Take Command prompt I do the
>COPY X.TXT Y.TXT
it gives a much nicer more detailed reply,
"C:\Documents and Settings\Owner\My Documents\0Temp2\x.txt => C:\Documents and Settings\Owner\My Documents\0Temp2\y.txt
1 file copied

That reply is much more useful in a log file. So I was asking how can I launch my .BAT file to use this JPSoft Take Command instead of the default earlier one that just says, "1 file(s) copied."?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
That reply is much more useful in a log file. So I was asking how can I launch my .BAT file to use this JPSoft Take Command instead of the default earlier one that just says, "1 file(s) copied."?

Are you asking how to associate .BAT files with TCC? It's easy to do, but it may cause problems for you. .BAT files sometimes rely on peculiarities of Microsoft's shells, and may not work quite the same way in Take Command.

Instead, I'd suggest making a copy of your batch file with a .BTM extension. .BTM files are probably already associated with TCC. If not, you can run the file TCCBATCH.BTM (in your Take Command directory) to associate .BTM files, and optionally .BAT and .CMD files, with TCC.
 
Are you asking how to associate .BAT files with TCC? It's easy to do, but it may cause problems for you. .BAT files sometimes rely on peculiarities of Microsoft's shells, and may not work quite the same way in Take Command.

Instead, I'd suggest making a copy of your batch file with a .BTM extension. .BTM files are probably already associated with TCC. If not, you can run the file TCCBATCH.BTM (in your Take Command directory) to associate .BTM files, and optionally .BAT and .CMD files, with TCC.


Brilliant! All I need to do is rename the file from .BAT to .BTM . I'll give that a try.
 
Similar threads
Thread starter Title Forum Replies Date
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
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20
jpeni Take Command Language Examples Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
fpefpe winfr command Support 4
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
M Selecting test "off by one" problem in Take command Support 4
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
R How to? Open Take Command at current folder Support 7
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
C TEE command appending null characters to output Support 6

Similar threads