EXIT hangs

May 31, 2008
382
2
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...
 
May 20, 2008
12,167
133
Syracuse, NY, USA
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