Announcement

Collapse
No announcement yet.

Example Script File

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

  • Example Script File

    Can someone post an example script that I can use to synch a directory on my local machine to a copy of that directory on a server? I need to have all subdirectories created a dn synched as well. Thanks.

  • #2
    Re: Example Script File

    Here's a minimal script to sync two folders and all their subdirectories.

    Code:
    load c:\desktop \\server\share
    sync update:lt->rt
    If you want to make the two sides identical (deleting files that only exist on the target, copying older files from the source over newer files on the target)
    Code:
    load c:\desktop \\server\share
    sync mirror:lt->rt
    You can run them using the syntax:
    bc2 @script.txt

    Let us know if you have any problems.
    Chris K Scooter Software

    Comment


    • #3
      I need to do this in an automated mode, how would you invoke beyond compare in batch and execute?
      load c:\desktop \\server\share
      sync mirror:lt->rt

      Comment


      • #4
        Save the script as a text file, then use the following command-line:
        "c:\program files\beyond compare 4\bcompare.exe" "@c:\script.txt"

        The @ character makes Beyond Compare run a file as a script instead of opening it for interactive comparison.

        See also the help file topics on scripting:

        https://www.scootersoftware.com/v4he...l?scripts.html
        https://www.scootersoftware.com/v4he...reference.html
        Chris K Scooter Software

        Comment


        • #5
          Thanks

          Comment

          Working...
          X