Need to exclude batch copy from certain subdirectories based on criteria

Advanced Renamer forum
#1 : 30/05-19 13:38
Mike
Mike
Posts: 1
If the subfolder contains the word "obsolete", then I do not want to copy the contents of the folder to the output directory.

If this isn't possible, then I need to exclude copying based on file name criteria. I do not want to copy files containing the word "obsolete".

Is there a way to do this?


30/05-19 13:38
#2 : 30/05-19 14:56
David Lee
David Lee
Posts: 1125
I don't think that you can filter files based on folder names when adding directories, but you can use your second option.

Add your root directory and select "Include subfolders"
Regular expression match: "obsolete" (without quotes)
Select "Not matching"

This will add all files with names not containing the word "obsolete", in lower case only.

To make the match case-insensitive add the "?i" flag

ie Regular expression match: "(?i)obsolete"


30/05-19 14:56