Detecting TCC and Take Command

Print Topic  Return to Overview  Previous Topic  Next Topic 

From a batch file, you can determine if TCC is loaded by testing for the variable function @EVAL, with a test like this:

 

if "%@eval[2 + 2]%" == "4" echo Take Command is loaded!

 

This test can never succeed in CMD.EXE. (Other variable functions could also be used for the same purpose.)

 

You can determine if TCC is running in a Take Command tab window with the internal variable _TCTAB:

 

if %_tctab == 1 echo TCC is running in a Take Command tab window!

Topic "batchdetect.htm" last edited 1/28/2008. ©2008  JP Software, Inc.
Keywords: Detecting,Batch Files