Start program without waiting and redirect output

How do I start a console program in a btm file, redirect its output, and have the btm file continue? I tried

start "Title" /tab Foo.exe > Out.txt

This doesn't work. In fact, sometimes Take Command stops working and then restarts. Also tried

detach Foo.exe > Out.txt

This doesn't work either.

TCC 12.00.42 x64 Windows 7 [Version 6.1.7600]
 
May 20, 2008
3,515
4
Elkridge, MD, USA
---- Original Message ----
From: David Marcus
| How do I start a console program in a btm file, redirect its output,
| and have the btm file continue? I tried
|
| start "Title" /tab Foo.exe > Out.txt
|
| This doesn't work. In fact, sometimes Take Command stops working and
| then restarts. Also tried
|
| detach Foo.exe > Out.txt
|
| This doesn't work either.
|
| TCC 12.00.42 x64 Windows 7 [Version 6.1.7600]
---- End Original Message ----

I would try this:

Foo.exe > Out.txt

--
HTH, Steve
 
I would try this:

Foo.exe > Out.txt

I want the btm file to continue, not wait for Foo.exe to finish. I've got a program that takes several hours to run. I want to do several runs concurrently, since my computer has multiple cores. I can open tabs manually and paste the correct command into each, but it would be simpler for me if I could launch all the processes from a btm file.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
How do I start a console program in a btm file, redirect its output, and have the btm file continue? I tried

start "Title" /tab Foo.exe > Out.txt

This doesn't work. In fact, sometimes Take Command stops working and then restarts. Also tried

detach Foo.exe > Out.txt

This doesn't work either.

TCC 12.00.42 x64 Windows 7 [Version 6.1.7600]

Perhaps:

Code:
start "Title" /tab %_cmdspec Foo.exe > Out.txt

(I don't know anything about Foo.exe, but it probably doesn't expect redirection characters in its command line.)
 
May 20, 2008
11,411
99
Syracuse, NY, USA
On Wed, 29 Dec 2010 11:55:49 -0500, David Marcus <> wrote:

|How do I start a console program in a btm file, redirect its output, and have the btm file continue? I tried
|
|start "Title" /tab Foo.exe > Out.txt
|
|This doesn't work. In fact, sometimes Take Command stops working and then restarts. Also tried
|
|detach Foo.exe > Out.txt
|
|This doesn't work either.
|
|TCC 12.00.42 x64 Windows 7 [Version 6.1.7600]

This, for example, works:

Code:
start /b %comspec /c netstat ^> netstat.txt

Note, %comspec is needed to provide the redirection, /b prevents an unsightly
new console, /c causes the new instance of TCC to exit when the (netstat)
command has finished. and excaping the redirection symbol makes it part of the
command sent to %comspec.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
On Wed, 29 Dec 2010 12:07:00 -0500, Steve Fábián <> wrote:

|---- Original Message ----
|From: David Marcus
|| How do I start a console program in a btm file, redirect its output,
|| and have the btm file continue? I tried
||
|| start "Title" /tab Foo.exe > Out.txt
||
|| This doesn't work. In fact, sometimes Take Command stops working and
|| then restarts. Also tried
||
|| detach Foo.exe > Out.txt
||
|| This doesn't work either.
||
|| TCC 12.00.42 x64 Windows 7 [Version 6.1.7600]
|---- End Original Message ----
|
|I would try this:
|
| Foo.exe > Out.txt

The BTM will wait for that to finish. He wants the BTM to continue while that
happens.
 
Similar threads
Thread starter Title Forum Replies Date
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
R How to? START program as top window? Support 2
M How to? Start a program on log on elevated abovenormal Support 5
C start /wait /pgm "program name" ^ ketstack n/w Support 3
C start/tab of a GUI program hangs TCMD Support 6
J Take command does not start on Windows 10 Support 3
N for start /b anamoly Support 1
U Can not get/start Take Command gui Support 1
DrusTheAxe START /? is incomplete Support 2
vefatica Start/stop screensaver from TCC? Support 12
S START with title Support 4
vefatica START at 0,0? Support 2
D START /POS versus @WINPOS and @WINSIZE Support 12
vefatica START /elevated and PcaSvc? Support 5
S incorrect message at start Cancel batch job 4START.bat ? (Y/N/A) : Support 1
vefatica START /PGM "name with spaces.URL" fails Support 2
L Peculiarities of how START launches processes Support 15
Peter Murschall v24 IDE/BDEBUGGER won't start Support 9
Dmitry L. Kobyakov WAD Start /pgm "name.htm" works improperly Support 4
Joe Caverly START Dialog usage of %_ variables Support 0
A Fixed [23.0.22]: TCMD crashes shortly after start, TCC keeps running in background Support 6
kb6ojs Want to start TCMD v20 with every Windows 10 bootup Support 3
vefatica START *command Support 5
Per TCC/LE 14 64-bit won't start on Windows 10 Insider Preview 17063 (171213) Support 12
A Fixed (CMD compat) START /D fails to recognize the switch option. Support 3
MikeBaas start /runas - I'd like /netonly Support 2
vefatica Start VIEW with the toolbar showing? Support 5
vefatica Documentation START /AFFINITY Support 0
B how to do in "start" command thing like in tcc.exe Support 1
J directory or folder to start in Support 2
R How to? Not have RT version show on start Support 3
D WAD START /ELEVATED "Title" /PGM "job.btm" Support 6
J How to? Start TCMD with different configurations Support 3
vefatica START /K ... Support 1
vefatica Documentation START /AFFINITY Support 5
vefatica Start TCMD with File Explorer showing? Support 2
Alpengreis WAD Each start/close of TCMD changes my Explorer setting Support 7
WadeHatler Just started getting a message about Cloud Storage every time I start TCC 19 Support 3
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
vefatica Shortcut/start-up folder nonsense Support 20
fishman@panix.com Can I start TCC in full screen mode? Support 9
R Unable to start any BTM file from Explorer Support 5
fpefpe How to? Stange start up issue Support 1
M Start "/Elevated" failure... Support 3
vefatica START, CMD vs. TCC Support 0
Steve Pitts Difference in exection with and without START Support 24
rjperrella start /tabna leaves blank windows when running batch scripts Support 10
vefatica Start-up directory for new tabs? Support 7
C OT: Registry OPEN verb to start elevated... Support 2
tmaynard Error on Take Command Start after recent update Support 2

Similar threads