Announcement

Collapse
No announcement yet.

Match based on file extension?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Match based on file extension?

    I'm a bit new to using masks and things so apologies if this is simple to do or has already been answered (I could not find it...)

    How can I match and compare the contents of files (so: non-identical files) with different names. I want to use only the file extension as the matching criteria.

    Ideally I'd like to avoid having to type every extension out manually as there are about 30 of them.

    For example:

    test1.cfg <> MyExample2.cfg
    test1.cft <> MyExample2.cft
    test1.cst <> MyExample2.cst
    test1.csv <> MyExample2.csv
    test1.ctl <> MyExample2.ctl
    test1.flw <> MyExample2.flw
    test1.ini <> MyExample2.ini
    ...

  • #2
    Hello,

    You could use the Folder Compare's Session menu -> Session Settings, Misc tab (Pro edition): new Alignment Override, then define it as:
    test1*
    =
    MyExample2*

    This defined the explicit difference in the name, and matches on the equal extensions left to right.
    Aaron P Scooter Software

    Comment


    • #3
      Dude!!! It works!!! Thank you SO MUCH!!

      Comment


      • #4
        Great to hear. The general tip is that you can use the DOS Mask like above or a regular expression to match on the equal text (text that is the same on both sides), while the different text is what you need to include. So it gets a little trickier if you are trying to match on variable different text, like a shifting date added to a file name.
        Aaron P Scooter Software

        Comment

        Working...
        X