By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!Add an internal variable which returns the number of TC Consoles running either in tabs or standalone.
A TCC instance count may be a better description.
Function TEST=`%@execstr[ (tasklist /U"%1" tcc | echo %@lines[con:])]`
Function TEST=`%@execstr[ (tasklist /U"%1" tcc |! echo %@INC[%@lines[con:]])]`
Perhaps even a variable for a count of TCMD tabs running TCC and another variable for the number of standalone TCC instances.
.. in the current TCMD.There's already the %_TCTABS variable (returns the # of tab windows).
.. in the current TCMD.
If you have multiple TCMD's running, it will miss the tabs in those.
Not useful in a standalone TCC sessions or for knowing how many of the TCTABS are running TCC, some may be running other things such as Windows CMD.There's already the %_TCTABS variable (returns the # of tab windows).
An internal variable would be cleaner and presumably faster than the function above.
set _TEST=%%@execstr[ (tasklist tcc ^|! echo %%@INC[%%@lines[con:]])]
timer on & echo %_TEST & timer off
Timer 1 on: 22:12:06
3
Timer 1 off: 22:12:06 Elapsed: 0:00:00,07
Code:v:\> set __tcccount=`%@execstr[ (tasklist tcc |! echo %@INC[%@lines[con:]])]` [...] Timer 1 off: 21:00:22 Elapsed: 0:00:00.00