Results 1 to 5 of 5
  1. #1
    Guest

    Default 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. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,656

    Default 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

  3. #3
    Join Date
    Mar 2018
    Posts
    2

    Default

    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

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,656

    Default

    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

  5. #5
    Join Date
    Mar 2018
    Posts
    2

    Default

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •