1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Log and foldermonitor problems

Discussion in 'Support' started by semko, Feb 1, 2012.

  1. semko

    Joined:
    Jun 10, 2008
    Messages:
    7
    Likes Received:
    0
    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.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    It doesn't seem to have an internal variable like _LOGFILE or _HLOGFILE, but you can pick it up with
    Code:
    %@option[LogErrorsName]
    I think that should be two separate commands:
    Code:
    log /w new.log
    log /e new.log
    
     
  3. semko

    Joined:
    Jun 10, 2008
    Messages:
    7
    Likes Received:
    0
    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.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    The foldermonitor problem is a Windows problem, not TCC. Windows will kill the directory change notifications when the computer goes to stand-by or hibernate. No way around that other than to not let your machine go to sleep.
     

Share This Page