_TCTAB when first starting Take Command

Folks,

I had a weird one when first starting Take Command after installing Windows updates today. Given that the effect is subtle (just a message really) and the knock-on effects are minimal, this might have been happening regularly and I've missed it. I always start TCMD from a Taskbar icon, generally as pretty much the first thing I do when starting the PC, and I have the following code in TCSTART.BTM:

Code:
@ECHO OFF
REM TakeCommand/32 startup batch script.
REM
ECHO Running %@NAME[%_BATCHNAME] batch file (from %@PATH[%_BATCHNAME])
ECHO %@NAME[%_BATCHNAME] {%_PID}: invoked %_ISODATE at %_TIME {%_TRANSIENT %_PIPE %_TCTAB %_TCTABACTIVE %_TCTABS %_SHELL} >>%@PATH[%_BATCHNAME]TCMD_AUTO.LOG
REM Check to see if we're running in a transient shell or a pipe
IFF %_TRANSIENT == 1 .OR. %_PIPE == 1 THEN
  ECHO %@NAME[%_BATCHNAME] - processing short-circuited for transient shell
  QUIT
ENDIFF
REM To avoid problems with TCC sessions started via the Windows scheduler
REM we bypass SHRALIAS processing unless running within Take Command
IFF %_TCTAB == 0 THEN
  ECHO %@NAME[%_BATCHNAME] - SHRALIAS processing short-circuited for stand-alone TCC
  SET TC32_LOAD_ALIAS=%_SHRALIAS
ELSEIFF "%@OPTION[localaliases]" = "No" THEN
REM Ensure that aliases and histories are globally available
  SHRALIAS
[...]

In this particular instance it would seem that _TCTAB was not set to 1 because the messages I see on startup are:
Code:
TCC  25.00.20 x64   Windows 10 [Version 10.0.18362.388]
Copyright 2019 JP Software Inc.  All Rights Reserved
Registered to [redacted]

Running TCSTART batch file (from D:\Users\Steve\AppData\Local\JPSoft\)
TCSTART - SHRALIAS processing short-circuited for stand-alone TCC
Running 4START batch file (from D:\Users\Steve\AppData\Local\JPSoft\)

The ECHO to TCMD_AUTO.LOG (added for historical reasons when debugging a long forgotten issue) seems to confirm that all of the _TCTAB related variable values were set to zero when they would normally be set to 1 for the first TCC instance within TCMD:
Code:
TCSTART {12068}: invoked 2019-10-04 at 10:23:15 {0 0 0 0 0 0}
TCSTART {12724}: invoked 2019-10-04 at 18:02:34 {0 0 1 1 2 0}
TCSTART {16936}: invoked 2019-10-04 at 19:53:19 {0 0 1 1 3 0}
(FWIW I have confirmed that 12068 is indeed the _PID of the session in which the messages above are displayed). The second and third tabs added to TCMD look normal.
 
Rex,

I have not noticed this again since, so I guess it was just some strange environmental thing (although it seems odd that anything would break the named pipe during the period between starting TCMD and the first default TCC running). To answer the question above, the first tab window opens automatically with TCMD (as per default) and the others were added by clicking on the 'new tab tab' in the TCMD window. In case it helps, attached is my INI file.

Cheers, Steve
 

Attachments

  • TCMD.INI
    3.4 KB · Views: 117
Similar threads
Thread starter Title Forum Replies Date
C How to? starting TCC/TCMD v25 Support 2
samintz Starting Terminal from TakeCommand Support 3
vefatica Starting *.xlsm? Support 34
vefatica Starting Office apps Support 8
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
vefatica Starting Office 365 apps? Support 3
D WAD STARTing WUP apps Support 1
D Occasional TCMD 17 crash when starting additional TCC Support 4
D Folders pane display problem when starting Support 4
samintz Fixed DO /L with stringset starting with /n /e Support 2
C Fixed Starting editor from VIEW Support 9
M Starting Windows GUI programs from the command line... Support 10
ehab aboudaya WAD starting tcmd.exe with dir that has Boost C++ Libraries zip file delays Support 2
vefatica Starting shell objects Support 6
C starting TC/LE on the command line Support 1
C starting a shortcut from desktop Support 14
J starting in chosen directory Support 4
C starting tcmd with alternate INI file Support 15
F unexpected %1 while starting ide Support 6
T Starting a process blocks TCC window... Support 2
T Problem Starting Vim & gVIM Support 5
millardjk IDE dies without starting Support 4
S Starting TCC with double click on tab bar Support 0
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 9
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2

Similar threads