Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2015
    Posts
    4

    Post Request: Auto start sync from startup param (command line)

    Hello,
    I like to use GUI's to set things up and commands to run them. So for example set up a session to sync from/to FTPS in the GUI, save that, and then run bcompare.exe "Session Name" on a schedule.

    Problem is there is no command parameter to actually automatically go ahead with the sync after the compare executes.
    Please add this!

    Scripting entire sessions is very tedious when you are already 90% there with the command line and UI. Cheers.

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,384

    Default

    Hello,

    Thanks for the suggestion. A GUI setup for script is on our wishlist. In the meantime, script does let you load a session name with:
    bcompare.exe "@c:\bcscript.txt" "SessionName"

    with bcscript.txt as:
    load "%1"
    sync update:left->right


    Script can load Folder Compare sessions, but not Folder Sync, so you would need to have them saved as a Folder Compare session type.
    Aaron P Scooter Software

  3. #3
    Join Date
    Jan 2015
    Posts
    4

    Default

    Hello, thanks for your reply, good to hear it's on the list.

    I tried this load method earlier today, and it explicitly stated that the Session must be a Compare not a Sync.

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

    Default

    Correct. Scripting does not support loading a Folder Sync session, but Folder Compare sessions can have the base folders, filters, criteria, etc set. Then perform a specific sync on the saved Compare session. In the graphical interface, in a saved Folder Compare session, you can go to the Actions menu -> Synchronize -> Update Left to Right to preview these steps in the GUI.
    Aaron P Scooter Software

  5. #5
    Join Date
    Jan 2015
    Posts
    4

    Thumbs up

    Quote Originally Posted by Aaron View Post
    Correct. Scripting does not support loading a Folder Sync session, but Folder Compare sessions can have the base folders, filters, criteria, etc set. Then perform a specific sync on the saved Compare session. In the graphical interface, in a saved Folder Compare session, you can go to the Actions menu -> Synchronize -> Update Left to Right to preview these steps in the GUI.
    Thank you, that worked splendidly!

    Sample:
    Code:
    log normal append:"Sync-%date%.log"
    
    option confirm:yes-to-all
    load "My Folder Compare Session"
    
    expand all
    folder-report layout:side-by-side  options:display-mismatches,include-file-links,column-attributes,column-timestamp,column-size output-to:"SyncReport-%date%.txt"
    
    sync create-empty mirror:right->left
    Maybe I don't even need the dual load for report + sync, but irrespective, it works .
    Last edited by bn880; 22-Jan-2015 at 05:50 PM. Reason: Removed needless dual load and create option

  6. #6
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,384

    Default

    Hello,

    You don't need to load twice. You can generate the report then immediately go to sync. You also do not need the 'create' parameter on the load line. This would be useful if you were loading 2 folder locations, but since you are loading a saved session, you wouldn't want to continue if for some reason that session wasn't found.
    Aaron P Scooter Software

  7. #7
    Join Date
    Jan 2015
    Posts
    4

    Default

    Thanks for the info, will fix that up.

Tags for this Thread

Posting Permissions

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