Announcement

Collapse
No announcement yet.

synchronise files

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

  • synchronise files

    Hi:

    i would like to know the script to copy files that are available on the left hand side and not on the right hand side of the comparison.

    thanks!

    Regards,

  • #2
    Have you looked at the Scripting Reference in the help file? Select the files you want to copy:

    select left.orphan.files

    Then you can copy the files to the other side:

    copy left->right

    Or you can use "copyto" to copy the files to a different location altogether.

    Edit: Oops, I missed the fact that this thread was posted under BC2.
    I am using BC3, but I believe the scripting syntax is similar between the two versions.
    Last edited by Michael Bulgrien; 11-Feb-2009, 07:55 AM.
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    Comment


    • #3
      Thanks! but this does not seem to work....

      i am trying to copy files from one system to another.

      Regards,
      Tanuja

      Comment


      • #4
        Tanuja,

        Here is a simple script that will copy files that only exist on the left to the right side.

        load c:\left c:\right
        expand all
        select lt.orphan.files
        copy lt->rt

        To run the script, use the command:
        "c:\program files\beyond compare 2\bc2.exe" "@c:\script.txt"
        Chris K Scooter Software

        Comment

        Working...
        X