TC in backgroud?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Nov 12, 2008
1
0
#1
Hi friends,

I am new in TC, and perhaps this is a stupid question:

How to run TC in background?

Like: c:\tc\ycmd.exe c:\tc\any.bat

but will be executed in background and not in foreground?

Thanks!

cbrito
 
#2
On Wed, 12 Nov 2008 19:24:23 -0600, cbrito <> wrote:


>I am new in TC, and perhaps this is a stupid question:
>
>How to run TC in background?
>
>Like: c:\tc\ycmd.exe c:\tc\any.bat
>
>but will be executed in background and not in foreground?
TCMD doesn't seem a likely candidate for background execution.

Yet in wondering about this, I issued "tcmd.exe /?" and got: "Take Command has
encountered a problem and needs to close" (et c.).
 

samintz

Scott Mintz
May 20, 2008
1,229
11
Solon, OH, USA
#3
TakeCommand, the GUI, is not designed to run in the background. I believe
what you are asking for is to execute a batch file in the background.

Batch files are executed by TCC.exe (or 4NT.exe depending on which version
you're running). To execute batch files in the background requires you to
run another instance of TCC (or 4NT). If there is console output from
your "background" batch execution, you'll want to launch the batch file
using START. If you just want the batch to execute without user
interaction or any display, you can use DETACH.

When you start a program with DETACH, that program cannot use the
keyboard, mouse, or video display. It is "detached" from the normal means
of user input and output. However, you can redirect the program's standard
I/O to other devices if necessary, using redirection symbols. In most
cases, you should only DETACH text-mode programs, since most graphical
applications cannot run without a screen or keyboard, or have their input
and output redirected.

examples:
START tcc /c foo.btm

DETACH foo.btm

-Scott


"JP Software Forums" <neil@jpsoft.com> wrote on 11/12/2008 08:24:13 PM:


> Hi friends,
>
> I am new in TC, and perhaps this is a stupid question:
>
> How to run TC in background?
>
> Like: c:\tc\ycmd.exe c:\tc\any.bat
>
> but will be executed in background and not in foreground?
>
> Thanks!
>
> cbrito
>
>
>
>