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?
If a folder contains a subfolder and a file which you'd *always* like to exclude....
Collapse
X
-
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 -
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
-
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 SoftwareComment
Comment