by Luuk » Fri Apr 23, 2021 8:17 pm
Im not understanding completely, but \ can only be added, not matched inside of the folder path.
Except that javascript does grant matching \ inside the folder path, so maybe its what your needing?
Like to only match the files in a parent folder called "BadFolderName", the Filters(12) "Condition" is like...
/.*\\BadFolderName\\$/.test(object('folder'))
The Filters(12) "Mask" does grant or forbid certain foldername or filename matches, but not pathname matches.
There is Copy/Move(13) "Path" to flatten the path, but Im thinking its not the automatic way that you are looking for?
Another way besides javascript, to only match files by their parent folder name....
First to put a counterfeit drive like X:\ in the top folder path, and press <enter> to remove all filenames from the list.
Then inside Filters(12) to put checkmarks only in "Files" and "Subfolder", then to put your file matches inside of "Mask".
Then to use something like Windows Explorer to find the BadFolderNames, maybe something like kind:folder BadFolderName.
So then, just drag the folders into the BRU list, so then all the matching filenames will present themselves in the list.
But if you change anything inside Filters(12) they will instantly disappear, so then having to drag your folders again.
Without javascript, Im thinking that dragging the folders with Copy/Move(13), is probably the best you can conduct them.
But stay away from the batch, because the way it looks right now, it will delete (overwrite) all existing same-named files.
It also would never conduct like the description says, because of using \.. instead of ..\ so never moving upward enough.
At first, Im going fix everything about the batch, but instead now Im just waiting to see if it gets altered again.
So Im copied the batch to verify this, because I thought it was illegal to edit the post, and this a good reason for it.
At some point, it had to be conducting properly, because everyone was satisfied, but its not safe right now.