If a folder contains a subfolder and a file which you'd *always* like to exclude....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • c627627
    Enthusiast
    • Sep 2014
    • 22

    If a folder contains a subfolder and a file which you'd *always* like to exclude....

    If a folder contains a subfolder and a file which you'd *always* like to exclude whenever comparing that folder with anything, can that be done and if so how?
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    You could update the Session Setting defaults with a specific filter to exclude this file. As a default, any new Folder Compares would automatically exclude this item. To exclude a file in a folder (wherever that folder is):
    -folder\file.txt

    To exclude an item at a specific sublevel:
    -.\folder\file.txt

    To update defaults, you can edit them on the Home screen, saved sessions list, Edit session defaults folder: Folder Compare. Or when editing within a Folder Compare's Session Settings, change from "Use for this view only" to "Also update session defaults"
    Aaron P Scooter Software

    Comment

    • c627627
      Enthusiast
      • Sep 2014
      • 22

      #3
      To globally exclude C:\Folder1 and C:\Folder1\File1.txt, I understand you are saying:
      Home screen > [under Saved sessions:] double click on Edit session defaults > Folder Compare

      Next part is confusing:

      Do we then click on Name Filters TAB > then under Excluded files do we paste
      C:\Folder1\File1.txt
      or
      -C:\Folder1\File1.txt

      and

      under Exclude Folders,
      do we paste
      C:\Folder1

      then Save?


      When comparing folders, the excluded folder and file are still not ignored.

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 15997

        #4
        Hello,

        The filtering is always relative from the Base Folder, and does not include it as part of the definition. You would never have a drive letter (c:\) as part of the filter, since the base folder is at least that root. If you are comparing C:\ to D:\, and each has C:\folder1 d:\folder1, then the filter would be -folder1\.

        I would suggest loading the comparison, then right click and Exclude the item you need to exclude. This will auto generate the specific syntax to that item (-.\folder1\). You can then delete the leading ".\" to make the filter more generally exclude that pattern regardless of the level it appears at inside your comparison.
        Aaron P Scooter Software

        Comment

        • c627627
          Enthusiast
          • Sep 2014
          • 22

          #5
          Your instructions worked great.
          Thank you very much Aaron.

          Comment

          Working...