Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

EXIT hangs

This script hangs the console window upon exiting. Tested with TCC and TCCLE.
Code:
goto EXEC
:EXEC
"%_cmdspec" /I
exit %?
Saved as c:\temp\jj.btm
Code:
C:\temp>*start "v:\bin\TCCLE\tcc.exe" /I

TCC LE  13.00.24   Windows XP [Version 5.1.2600]
Copyright 2011 JP Software Inc.  All Rights Reserved

C:\temp>c:\temp\jj.btm
goto EXEC
"V:\bin\TCCLE\TCC.EXE" /I

TCC LE  13.00.24   Windows XP [Version 5.1.2600]
Copyright 2011 JP Software Inc.  All Rights Reserved

C:\temp>exit
The console window hangs...
 
On Thu, 13 Oct 2011 11:29:10 -0400, Stefano Piccardi <>
wrote:

|Code:
|---------
|goto EXEC
|:EXEC
|"%_cmdspec" /I
|exit %?
|---------

Works OK with TCC here. Do you realize that the original TCC will wait for the
second one to terminate before executing the batch file's "exit"?
 

Similar threads

Back
Top