Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Save a transcript of the TCC Console Session

Aug
2,870
153
I recently demonstrated how to Save the TCC Console as HTML to RightNote.


In the SaveConsole plugin documentation,
@Charles Dye notes;

Note that this command will not work as intended under Windows Terminal. In Windows Terminal, SAVECONSOLE will only save the visible portion of the console window, not the contents of the scrollback buffer. This is because Windows Terminal is not fully compatible with the documented Windows console APIs. TCC’s internal SAVECONSOLE command has the same issue. I don’t see any workaround unless Microsoft chooses to improve Windows Terminal’s compatibility — don’t hold your breath.

Ref: SaveConsole Plugin

PowerShell 5.1 makes available two cmdlets to record all commands and outputs from a session into a text file.

Start-Transcript Start-Transcript (Microsoft.PowerShell.Host) - PowerShell
Stop-Transcript Stop-Transcript (Microsoft.PowerShell.Host) - PowerShell

TCC has the LOG command,
which can perform similarly.

Ref: LOG command - Save a log of commands to a file

I have two aliases that emulate the PowerShell cmdlets;
Code:
start-transcript=log /a on
stop-transcript=log /a off

On my Windows 10 system,
the log file is available at
C:\ProgramData\JP Software\Take Command 37\TCLogAll

When using TCC in Windows Terminal,
this will allow the saving of the TCC session to a text file.

NOTE: Remember to issue Start-Transcript BEFORE you begin the TCC session for which you want a copy retained.

Joe
 
Back
Top