TCC > Variables & Functions > Variables:
Comments (...)
_BATCHNAME returns the full path and file name of the current batch file. It is an empty string if no batch file is active.
Help URL: http://jpsoft.com/help/index.htm?_batchname.htm