LOG command behavior

Feb 27, 2018
I cannot understand the LOG command behavior. First, I issue the "option" command and see:


Ok, then I issue the command:

log /H /W %TMP%\tcc.hst

followed by the "option" command again and see:


Now any command I type in TCC window is executed but is accompanied by the message:

TCC (Sys) System cannot find the path specified.
"C:\ProgramData\JP Software\Take Command 22\TCCommandLog"

This is 100% reproducable. Is this a bug?
May 20, 2008
Syracuse, NY, USA
I tried it with TCC newly started after emptying all the boxes ... the same command "log /H /W %TMP%\tcc.hst". The option dialog then said:

That seems OK ... TCC correctly expanded %tmp% and enabled the history log. It seems to also enter a (default) command log name but not enable it (that's OK).

Afterwards, I had no problem entering commands. But it was not loggiing to h:\temp\tcc.hst. It was logging to "C:\ProgramData\JP Software\Take Command 22\TCCommandLog".

Even after restarting TCC, with these settings in place, it logged the history, but to the file specified for command logging.

v:\> type h:\4ntlogs\history.log

v:\> tail /n 6 "C:\ProgramData\JP Software\Take Command 22\TCCommandLog"
echo foo
echo bar
type h:\temp\tcc.hst
type "C:\ProgramData\JP Software\Take Command 22\TCCommandLog"
type h:\temp\tcc.hst
tail /n 6 "C:\ProgramData\JP Software\Take Command 22\TCCommandLog"
Feb 27, 2018
This is the next thing I wanted to report - nothing is written to the file that is the argument to the "log /H" command.
Nobody thinks TCC does not expand environment variables. It does. I just expected the (really clever, useful, etc.) behavior declared in the documentation. If TCC does not follow the described behavior then it is a bug, isn't it?

In parallel, I am using the 4NT born approx. 15 years ago. Comparing TCC and that old 4NT, the modern TCC is a buggy, almost unusable thing. Usually I find a bug in each command I try to use... Looks like the product never passed the testing procedures.
May 20, 2008
Syracuse, NY, USA
This is from a newly started TCC, having done nothing else.
v:\> grep -i log %_ininame

v:\> tail /n 5 h:\4NTLogs\history.log
log /h /w h:\4ntlogs\history.log
echo foo
type h:\4NTLogs\history.log

v:\> tail /n 5 "C:\ProgramData\JP Software\Take Command 22\TCCommandLog"
grep -i log %_ininame
grep -i log %_ininame
type h:\4NTLogs\history.log
tail /n 5 h:\4NTLogs\history.log
tail /n 5 "C:\ProgramData\JP Software\Take Command 22\TCCommandLog"

If, after that, I look at the option dialog, I see
Similar threads
Thread starter Title Forum Replies Date
rps How to? Alias/Command line use of *log on/off Support 2
C LOG entry for TCMD/TCC command line Support 15
Jay Sage WAD Issues with LOG Command Support 4
A How to? Set up a log file for all command output Support 3
S Documentation LOG command Support 0
dcantor Documentation Help error for command LOG Support 0
vefatica v26 exception log gone crazy Support 6
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
Joe Caverly tcc.exception.log Support 3
rps LOG /a (all) with Atl-F2 Support 2
C Documentation default location for LOG files Support 21
C b34 Installer leaves LOG in %LocalAppData%\Temp\ Support 1
vefatica Strange tcc.exception.log Support 7
vefatica TCC.LOG Support 4
D How to? How to show variables expanded in the log tab Support 3
M How to? Start a program on log on elevated abovenormal Support 5
F Dating a log Support 14
C TPipe Log file not correct Support 1
vefatica aemail\datamystic.log? Support 1
M How to? Save the session log from a batch file? Support 5
S Log and foldermonitor problems Support 3
S LOG within a batch file Support 1
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 5
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