TCC > Variables & Functions > Variables:
Comments (...)
_BATCH returns the current batch file nesting level. It is 0 if no batch file is currently being processed.
Batch files are nested with the internal CALL command.
Help URL: http://jpsoft.com/help/index.htm?_batch.htm