Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2016
    Posts
    1

    Default use "Ignore Folder Structure: option in command line

    Hi,
    Is there an option to set folder display filter "Ignore Folder Structure" when running BC from script?

    Thanks.

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

    Default

    Hello,

    Not directly in script. However, you can configure a blank, new saved Folder Compare session with the option set, then load it as a base level of settings. You can then load folders into it:

    log verbose "c:\bclog.txt"
    load "session name"
    load "c:\folder1" "c:\folder2"
    folder-report layout:side-by-side output-to:"c:\bcreports.txt"

    Where "session name" is a saved Folder Compare session with no folders but Ignore Folder Structure set.
    Aaron P Scooter Software

  3. #3
    Join Date
    Dec 2016
    Posts
    1

    Default

    Maybe I'm wrong but I think it's a good practice to add "switches" before "parameters". Also the man page of rsync reports --exclude usable as with the "=" syntax or without. So to standarize across operating systems, I'd use rsync -av --progress --exclude="thefoldertoexclude" sourcefolder /destinationfolder - anyway upvote for the rsync instead of the find, as you can easily use absolute paths for the source while in the find it's trickier as it uses the {} in the dst.

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

    Default

    Expanding on our arguments and script options is something on our wishlist. We just don't currently have the "Ignore Folder Structure" flag, but do load all options when loading a session, so loading the session is the workaround. We also have a list of command line options, but generally our script is multiplatform, too, as well as passing in any text variables from the command line that can insert into scripting.

    Example:
    bcompare.exe "@c:\bcscript.txt" "c:\folder1path" "c:\folder2path"

    the text of the paths can then be accessed in script with %1 and %2. Documented in our Help file -> Using Beyond Compare -> Scripting.
    Last edited by Aaron; 07-Dec-2016 at 11:37 AM. Reason: Example
    Aaron P Scooter Software

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
  •