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

    Default Exists a parameter in Command Line to force a specific "File Format"?

    Hi,

    I'm trying to compare 2 files. They have XML extension and I created special "Grammar" to not compare the xml tags that have date data.

    Example:
    <CreDtTm>2015-01-20T16:42:32</CreDtTm>

    For this I created a Grammar Item with
    Category: Delimited
    Text from: <CreDtTm>
    to: </CreDtTm>

    I don't like introducing these rules in the XML format so I created another format named "RB_XML" with this and other similar Grammar Items. I need to know how to specify the format "RB_XML" in the command line and scripting comparation.

    Thanks!!!

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

    Default

    Hello,

    The command line and scripting use the default method, which is the topmost format in the Tools menu -> File Formats list. You can move your customized format higher in the list and associate with *.xml for it to be used automatically. We don't have a method to pick it as a parameter. Alternatively, you could have a Portable Install used for your scripting, which has a specific set of settings pre-configured, or edit the Portable Install's BCFileFormats.xml on the fly before a script call.
    Aaron P Scooter Software

  3. #3
    Join Date
    Jan 2015
    Posts
    4

    Default

    Hi,

    Thanks. The comparison is make in an automated test. This is the reason because I need to force the File Format only when I need.
    This solution is not valid for me.

    Thank you anyway

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

    Default

    Hello,

    In instances of automation, we have customers use the Portable Install method, and then edit the .xml settings on the fly before calling the compare. Enhancing this is on our wishlist.
    Aaron P Scooter Software

Posting Permissions

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