Announcement

Collapse
No announcement yet.

copyto use datestamp in filename?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • copyto use datestamp in filename?

    I'm using snapshots in a way much like the sample script from the helpfile, to backup a directory (load x x.bcss...copyto daily_x.zip...snapshot lt output:x.bcss)

    In previous reading, I thought I saw a way to use the date as part of output filenames, but now I don't.

  • #2
    Re: copyto use datestamp in filename?

    Okay, found it in the sample scripts page of the help file: %date%, or for my example, "copyto lt x_%date%.zip".

    Whew.

    /dps

    Comment


    • #3
      Re: copyto use datestamp in filename?

      There are three date/time variables you can use in the script.

      %date% gives the date in the yyyy-mm-dd format.

      %time% gives time based on your regional settings in Windows. For many settings, this isn't a valid value to use for filenames.

      %fn_time% gives you the current time as hh-mm-ss.
      Chris K Scooter Software

      Comment


      • #4
        Re: copyto use datestamp in filename?

        Thanks!

        /dps

        Comment

        Working...
        X