Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2014
    Location
    Germany
    Posts
    7

    Default INI file comparison

    I would have thought that this topic has already been discussed to death, but oddly the search function did not turn up anything.

    I have written a tool that re-sorts an INI file based on a template so they can be compared much more meaningful than unsorted or alphabetically sorted INI files. Basically, it would need to be called like

    mytool [templatefile] [inputfile] [outputfile]

    in the terms of a Beyond Compare conversion utility, where you want to see an older version on the left, the current version the right, have the older version sorted so it matches the current version closely and also want to be able to edit the current version, that would mean it should be called for the left file only like this:

    mytool [rightfile] [leftfile] [outputfile]

    I can't figure out whether this is currently possible, it probably isn't, is it?

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

    Default

    Hello,

    Our File Format's can have an External Conversion applied which accept %s as the current source file, and then output to %t which is the temp text file that is displayed. You would need to have a set template file that you alter or edit externally, as we don't have a variable definition for it. In order to use multiple, you could create multiple New File Formats, each using a different template, then when in the Text Compare load the specific format with the template you need.

    We have an example Kb article here:
    http://www.scootersoftware.com/suppo...rnalconversion
    Aaron P Scooter Software

  3. #3
    Join Date
    Jun 2014
    Location
    Germany
    Posts
    7

    Default

    Quote Originally Posted by Aaron View Post
    Our File Format's can have an External Conversion applied which accept %s as the current source file, and then output to %t which is the temp text file that is displayed. You would need to have a set template file that you alter or edit externally, as we don't have a variable definition for it. In order to use multiple, you could create multiple New File Formats, each using a different template, then when in the Text Compare load the specific format with the template you need.
    I was aware of this functionality, but what I wanted to do was resorting the second file, using the first file as template. I think that's not possible because I can't pass the file name of the first file to the conversion of the second file, can I?

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

    Default

    No, the conversion is separate and runs 'twice' (once for each side).

    You would want to have a common template, then sort both files (and all future INI files) using the same template. You could have a more complicated parent script, like a bat file, that takes in the source, and references other locations, but these would need to be setup externally to BC3.
    Aaron P Scooter Software

  5. #5
    Join Date
    Jan 2015
    Posts
    1

    Default

    @dummzeuch

    Where can I find your tool?

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
  •