Creating a Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    Creating a Script

    It's been a long time since I'ved used BC but didn't there used to be a way to say create a script based on my current settings?

    I want to do a folder A to always be excatly the same as folder B. Both folders will be changing but after the script has run I want A to be exactly the same as B (deleting all orphans in A).

    How do I do this?

    Thanks,

    Brad
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: Creating a Script

    There isn't a way to automatically generate a BC script, although it is on our wish list.

    It is possible to load a saved session in a script, using load "session name".

    To make A an identical copy of B, including deleting orphans on A, you use a script like:
    Code:
    criteria timestamp size
    load pathA pathB
    sync mirror:rt->lt
    You can run the script using the command bc2.exe @script.txt.
    Chris K Scooter Software

    Comment

    Working...