How to? Save the session log from a batch file?

May 24, 2010
855
0
Northlake, Il
By "session log", I specifically mean the results of the Take Command "Save to file..." menu option. There doesn't seem to be any way that I can find to do that from a batch file. Am I right about that?
 
May 20, 2008
11,400
99
Syracuse, NY, USA
By "session log", I specifically mean the results of the Take Command "Save to file..." menu option. There doesn't seem to be any way that I can find to do that from a batch file. Am I right about that?
SAVECSB (4CONSOLE plugin) will save the console screen buffer as plain text. I just gave it a quick test from TCMD and it seemed to work OK. Sample:
Code:
Begin saved console screen buffer: 2012-06-04  11:51:37
-------------------------------------------------------
 
 
v:\> savecsb /?
Save the contents of the console screen buffer to a file
 
  SAVECSB [/A] file
 
    File is created if not found
    /A : append to file (else write new file)
 
-----------------------------------------------------
End saved console screen buffer: 2012-06-04  11:51:37
 
********************************************************************************
 
May 20, 2008
11,400
99
Syracuse, NY, USA
4CONSOLE also has SAVECON/RSTRCON which will save (in a binary format) / restore the console's text, attributes, and metrics. One quick and simple test worked OK in TCMD. It was not meant for TCMD, however, and uses CONSIZE to restore the console to the saved state. I don't know how well RSTRCON will work if you monkey around with the sizes of the consoles underlying TCMD's tabs.
 
May 24, 2010
855
0
Northlake, Il
Actually, Vince, not quite. While this had an easy work-around for me, it doesn't seem that the "/A" flag is doing anything (although it's certainly a possibility that I screwed up somewhere). Since, again, it wasn't a problem for me, I'm telling you as a pure FYI.
 
Similar threads
Thread starter Title Forum Replies Date
RChrismon How to? Changes to Options Don't Save Support 8
M Save the environment .. ;-) Support 2
R V19 - At startup, TCC save directory in the directory history list Support 2
T Fixed V18 debugger crashed on save button Support 1
I How to? Save and restore folder timestamps Support 22
SeoulBigChris Save Environment (Tabs) on Exit? Support 3
M How to? Save and then restore "Echo" status Support 2
J Utility to Save/Restore current screen Support 16
R Toolbar - save to .INI Support 4
millardjk Save & restore font in IDE (10b68) Support 1
A TCMD10 doesn't save options until restarted Support 10
E Save TCC configuration Support 1
S Debugging Session Hang Support 7
P Run as Admin tab in non-elevated Take Command session? Support 9
rps Unalias * hangs TCC session Support 2
vefatica TCC window caption in elevated session? Support 5
S TCC 14.0 disappears from RDP session Support 3
M How to? Run the control panel from a TCC session... Support 2
Mordachai How to capture all console output from a TCMD session? Support 4
A How to? Frozen session tab with "ERROR: The file is either empty or does not contain the valid choices." Support 19
vefatica BTM file hoses logon session Support 12
vefatica Elevated session and UpdateTitle? Support 3
A Redirecting TCC output to a different RDP Session Support 6
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
P LOG command behavior Support 3
rps How to? Alias/Command line use of *log on/off Support 2
C b34 Installer leaves LOG in %LocalAppData%\Temp\ Support 1
vefatica Strange tcc.exception.log Support 7
C LOG entry for TCMD/TCC command line Support 15
Jay Sage WAD Issues with LOG Command Support 4
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
A How to? Set up a log file for all command output Support 3
vefatica aemail\datamystic.log? Support 1
S Documentation LOG command Support 0
dcantor Documentation Help error for command LOG Support 0
S Log and foldermonitor problems Support 3
S LOG within a batch file Support 1

Similar threads