Logfile with timestamp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcnobrain
    Visitor
    • Jun 2011
    • 4

    Logfile with timestamp

    Hello

    I would like to have a logfile with date and timestamp in the filename.

    i already tried this "c:\Log\Sync_%Date%_%Time%.log"

    the variable date will be set correct but the timestamp does not work.

    any idea ?

    Thanks
    Mcnobrain
  • chrroe
    Pooh-Bah
    • Oct 2007
    • 588

    #2
    Hi,

    From the BC3-helpfile (Section "Automating with Scripts"):

    There are several dynamic variables that Beyond Compare can fill in at each line of the script. The %date% variable fills in the current date in the format yyyy-mm-dd. The %time% variable's format depends on your computer's regional settings. The %fn_time% variable outputs the time as hh-mm-ss, which can be used for filenames.

    Hope this helps ...

    Bye
    Christoph

    Comment

    • mcnobrain
      Visitor
      • Jun 2011
      • 4

      #3
      thanks for your reply

      the fn_time variable work fine :-)


      thanks
      mcnobrain

      Comment

      Working...