How do I include all files and exclude *.bak and *.tmp files in WinMerge compare dialog window?

=========== WinMerge Dialog Window ===========

Left: [Folder-A]               [ OK ]
Right: [Folder-B]              [ Cancel ]
Filter: *.*                    [ Help ]

[x] Include Subfolders


Using an inclusive filter, all files are included except those matching a filter rule. For .tmp and .bak files that would be:

def: include ## Inclusive (loose) filter lets through all items not matching rules
f: \.tmp$ ## temporary files
f: \.bak$ ## back up files

When selecting a file or folder, hit select right next to the filter textfield to select a filter. Then hit new, select a filename and adjust the filter by the above lines. After saving, you may have to refresh the filter page by closing and opening it again. Select your new filter and voila.

  • Tks, it works. Been a while and I have used another software. Now that I know how filters work, I may give WinMerge another chance. – Level1Coder Mar 18 '15 at 0:09

You can use a filter. See here, section 4.1.3. Creating a file filter.

  • link doesn't work – Level1Coder Mar 9 '14 at 2:03
  • Oops. I fixed it now. – Maria Ines Parnisari Mar 9 '14 at 2:04
  • 2
    Actually, I read that before posting the question. The documentation is rather poor on how to exclude files, there is no clearcut example. – Level1Coder Mar 9 '14 at 2:08
  • Basically, you create a filter for bak and tmp files, and apply that filter to the comparison. – Maria Ines Parnisari Mar 9 '14 at 2:08
  • Does that mean if I have 1 billion files to compare, it will compare 1 billion files THEN apply filter? Seems not efficient – Level1Coder Mar 9 '14 at 2:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.