Log and foldermonitor problems

Jun 10, 2008
7
0
Remlingen, Germany
I'm just evaluating the trial version of TCC v13 to see if it makes sense to spend quite a lot of money to upgrade my somewhat outdated version of 4NT to TCC. So far I ran into 2 little problems I would need some help with:

1. Log files
At the beginning of a batch I want to store the current locations of the log and error log files, change them to a new location and restore them to the previous locations at the end of the batch. I find the current location of the log file with the help of %_logfile but how can I get the location of the error log?

With 4NT I could use 'log /e /w new.log' to change the location of both logs to the same file and start logging. Unfortunately it does not work this way any longer with TCC.

2. foldermonitor
Foldermonitor doesn't seem to survive the suspend state. When after a longer period of time the computer returns from stand-by or hibernate, the defined action gets no longer triggered on any changes in the watched folder(s).

It would be very kind if someone could offer a solution for my little problems. Thanks a lot in advance.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,491
90
Albuquerque, NM
prospero.unm.edu
1. Log files
At the beginning of a batch I want to store the current locations of the log and error log files, change them to a new location and restore them to the previous locations at the end of the batch. I find the current location of the log file with the help of %_logfile but how can I get the location of the error log?

It doesn't seem to have an internal variable like _LOGFILE or _HLOGFILE, but you can pick it up with
Code:
%@option[LogErrorsName]

With 4NT I could use 'log /e /w new.log' to change the location of both logs to the same file and start logging. Unfortunately it does not work this way any longer with TCC.

I think that should be two separate commands:
Code:
log /w new.log
log /e new.log
 
Jun 10, 2008
7
0
Remlingen, Germany
Charles,

the %@option hint was very helpful. The disadvantage is that I would have to change dozens of 4NT btms to get the same log file handling I had with 4NT in TCC.

Do you have any clue how I could solve my 2nd problem (foldermonitor)?

Thank you very much for your help.
 
Similar threads
Thread starter Title Forum Replies Date
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
M How to? Save the session log from a batch file? Support 5
S Documentation LOG command Support 0
dcantor Documentation Help error for command LOG Support 0
S LOG within a batch file Support 1
twaterloo Foldermonitor Bugs? Support 6
twaterloo FolderMonitor for the 1st time not working Support 5
vefatica FOLDERMONITOR: /= dialog creates malformed command Support 2
cgunhouse Foldermonitor Issue Support 7
C FOLDERMONITOR inactive with multiple /I Support 1
cgunhouse Foldermonitor with "/E" Option Issue Support 6
cgunhouse Foldermonitor with /W option Support 10
G FOLDERMONITOR created also firing for delete (and maybe other events) Support 7
vefatica Fixed FOLDERMONITOR causes crash Support 23
mikea FOLDERMONITOR confusions Support 7
cgunhouse Foldermonitor and iftp Support 1
T How to? Using FOLDERMONITOR 1 event causes multiple trigger(ing)s Support 8
Frank question to FOLDERMONITOR Support 14
Steve Pitts FOLDERMONITOR missing events?? Support 7
J Still problems understanding "foldermonitor" Support 9
Charles S. Roaten Problems with TCSTART.BTM Support 1
vefatica Office problems better Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
Peter Murschall CMDebug 26.01.37 has problems with Alias Support 21
C unzip problems Support 2
C TCC 26 BATCOMP BTM problems? Support 5
Alpengreis WAD [v26 Beta RC3]: MSGBOX color problems Support 4
Alpengreis QUERYBOX problems Support 5
R New Cloud Storage Tab in TCC options causing problems Support 0
Craig Fitzgerald Problems using tcstart.btm Support 3
M Problems with @REGBREAD on remote system Support 4
K_Meinhard Help problems Support 3

Similar threads