Announcement

Collapse
No announcement yet.

Quick mirror in batch file

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Quick mirror in batch file

    I'd like to be able to have a series of commands in a batch file that simply passed two directory names to beyond compare and the result would be a mirror of one to the other.

    I think I can do this using scripting but I don't know how to do this without having a special script for each action.

  • #2
    You can use %1 through %9 to refer to command line arguments within the scripts. The values don't include the script name (@script) or any switches (/silent). So you could have a script like:
    Code:
    load "%1" "%2"
    sync mirror:lt->rt
    And then call it like:
    BCompare.exe @script C:\Dir1 C:\Dir2

    You could also pass the sync type in as an argument, and call it like:
    BCompare.exe @script mirror C:\dir1 C:\dir2.
    Zoë P Scooter Software

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎