compare multiple unimportant columns tolerance.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sdhanadayalan
    New User
    • Jan 2013
    • 1

    compare multiple unimportant columns tolerance.

    We have multiple pipe (|) delimited files each with different contents. In each format we need to specify the unimportant columns and the columns with a specified tolerance.

    I would like to automate the comparison with script, but I'm not sure how to save the rules and provide different rules to the file comparing script?

    Thanks for the help.
    Sathish
  • Aaron
    Team Scooter
    • Oct 2007
    • 15941

    #2
    Hello,

    Unfortunately, BC3 script does not support loading a saved data compare session (which is where the Unimportant Columns would be defined).

    Instead, you would need to use the graphical interface to setup a saved Folder Compare session, with file name filters which only show the relevant files you would like to compare. You can then double click on the pair of files, alter the Session Settings and in the Session Setting dialog change the dropdown from "Use for this view only" to "Apply to all files in parent session". Then close the child session and re-save the parent Folder Compare.

    Script can now use the parent folder compare by loading it, using expand all and select all files, then generate a report on the selection. This will use the previously saved child session settings.

    Alternatively, you can use a Portable Install of Beyond Compare 3, which stores all of the settings within the main install folder, including BCSessions.xml. You can use another script to alter BCSessions.xml manually to the needed defaults, then launch the BCScript.
    Aaron P Scooter Software

    Comment

    • JosephAT
      Visitor
      • Mar 2015
      • 4

      #3
      Is there a version of Beyond Compare that supports "loading a saved data compare session (which is where the Unimportant Columns would be defined)" ?

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 15941

        #4
        Hello,

        Loading from script, specifically, correct? Beyond Compare 4 does not currently support loading a specific Data session during scripting. Scripting workarounds include saving a Folder Compare session with specific child session settings (data session type), or using a Portable Install of BC4 that has the default session settings configured correctly for the script to use, or use another scripting call to alter the bcsessions.xml on the fly before the BCscript call. Enhancing this is on our wishlist.

        Loading and saving sessions in the graphical interface should be straight forward.
        Aaron P Scooter Software

        Comment

        • JosephAT
          Visitor
          • Mar 2015
          • 4

          #5
          Thanks for the prompt response Aaron. Yes, I was referring to loading a saved Data session from script. And yes loading a saved Data session using the GUI is straight forward.

          I would find it advantageous to create and save different Data sessions using the GUI and implement those saved session in a script for "batch" processing.

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 15941

            #6
            Hello,

            Which options would you be configuring in the graphical interface that you would like to save and use in scripting? We have a wishlist entry where we are tracking the settings users would like to configure on the fly. Specifically Unimportant Columns and tolerance for specific columns?
            Aaron P Scooter Software

            Comment

            Working...