Starting a process blocks TCC window...

Oct 17, 2008
4
0
California
Hi,

when I start an application which runs in its own window, the control returns to the prompt, as expected. Example: putty.

I wanted start several of these in a script file. But when I start the very same 'putty' command in a *.bat, *.cmd or a *.btm for that matter, the process opens window and works, but the control is not being passed further to the next command. I cannot even interrupt such a script at all, despite a "break on" command in it! Only when I close/exit that putty terminal, the control in the *.bat file advances to the next one, and so on. Of course, not a desired behavior.

How to change that and send the command into background? Is it a bug, or Windows works like that always?

I am using WinXP pro.
TCC LE 9.02.152 Windows XP [Version 5.1.2600]

Thomas
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,447
88
Albuquerque, NM
prospero.unm.edu
Hi,

when I start an application which runs in its own window, the control returns to the prompt, as expected. Example: putty.

I wanted start several of these in a script file. But when I start the very same 'putty' command in a *.bat, *.cmd or a *.btm for that matter, the process opens window and works, but the control is not being passed further to the next command. I cannot even interrupt such a script at all, despite a "break on" command in it! Only when I close/exit that putty terminal, the control in the *.bat file advances to the next one, and so on. Of course, not a desired behavior.

How to change that and send the command into background? Is it a bug, or Windows works like that always?

That behavior is deliberate, for compatibility -- CMD.EXE works the same way. To start a GUI program within a batch file and then continue to the next line, use the START command.
 
D

drrob1

Guest
AFAIK that is, and has always been, Windows behavior.

FWIW, linux works that way also.

ThomasH wrote:

> Hi,
>
> when I start an application which runs in its own window, the control returns to the prompt, as expected. Example: putty.
>
> I wanted start several of these in a script file. But when I start the very same 'putty' command in a *.bat, *.cmd or a *.btm for that matter, the process opens window and works, but the control is not being passed further to the next command. I cannot even interrupt such a script at all, despite a "break on" command in it! Only when I close/exit that putty terminal, the control in the *.bat file advances to the next one, and so on. Of course, not a desired behavior.
>
> How to change that and send the command into background? Is it a bug, or Windows works like that always?
>
> I am using WinXP pro.
> TCC LE 9.02.152 Windows XP [Version 5.1.2600]
>
> Thomas
>
>
>
>
>
 
Similar threads
Thread starter Title Forum Replies Date
C How to? starting TCC/TCMD v25 Support 2
samintz Starting Terminal from TakeCommand Support 3
vefatica Starting *.xlsm? Support 34
Steve Pitts _TCTAB when first starting Take Command Support 2
vefatica Starting Office apps Support 8
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
vefatica Starting Office 365 apps? Support 3
D WAD STARTing WUP apps Support 1
D Occasional TCMD 17 crash when starting additional TCC Support 4
D Folders pane display problem when starting Support 4
samintz Fixed DO /L with stringset starting with /n /e Support 2
C Fixed Starting editor from VIEW Support 9
M Starting Windows GUI programs from the command line... Support 10
ehab aboudaya WAD starting tcmd.exe with dir that has Boost C++ Libraries zip file delays Support 2
vefatica Starting shell objects Support 6
C starting TC/LE on the command line Support 1
C starting a shortcut from desktop Support 14
J starting in chosen directory Support 4
C starting tcmd with alternate INI file Support 15
F unexpected %1 while starting ide Support 6
T Problem Starting Vim & gVIM Support 5
millardjk IDE dies without starting Support 4
S Starting TCC with double click on tab bar Support 0
vefatica SETP usually fails with a 32 bit process Support 4
x13 Check if process is elevated? Support 11
Alpengreis Remaining TCMD background process (v26) ... Support 19
vefatica Tmp files from in-process pipes not deleted Support 6
Jay Sage TASKLIST Command Process Count Support 5
Joe Caverly PSHELL and out-of-process servers Support 2
CWBillow Upgrade process Support 7
Joe Caverly SETP and 32-bit process Support 2
rps V20 In-process pipes problem Support 8
R Fixed Internal ZIP command fails to process multiple files Support 3
C Determine process svchost is running Support 13
fpefpe WAD Python support does not process command line Support 14
M WAD tcmd.exe crashes and leaves an orphaned tcc.exe process Support 6
Stefano Piccardi replace tcc process space? Support 8
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
D Environment in elevated process Support 1
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 5
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 0
Phileosophos ren /s does not process subdirectories Support 3
nikbackm Find out when a process has stopped Support 5
N Unable to end tcc.exe process Support 1
E CPU usage of a process Support 2
S Your system (homepage) blocks my IP! Support 4

Similar threads