EXIT hangs

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 31, 2008
376
2
#1
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...
 
#2
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"?