Page 1 of 1

How to filter?

PostPosted: Wed Jul 17, 2019 1:13 pm
by TestAccount123
I want to filter a folder with multiple folders/files. But i only want to rename based on whether or not the current file has a specific name in it.

My current batch file looks like this:

Code: Select all
BRC64.exe /DIR:"D:\Plex\TV Show\Coronation Street" /NOFILES /REMOVEFIRSTN:18 /CUTFIRSTN:4 /PASTEATEND /TIDYDS /TRIM /CUTLASTN:4 /PASTEATPOS:4 /NODUP /MINLEN:25 /EXECUTE

BRC64.exe /DIR:"D:\Plex\TV Show\Coronation Street" /NOFOLDERS /REMOVENAME /APPENDFOLDER:P::1 /RECURSIVE /EXECUTE


But i only want to change file names if they contain "Coronation" in them. Would i just add the following at the beginning of each line?

Code: Select all
/REGEXP \b(\w*Coronation\w*)\b


TIA

Re: How to filter?

PostPosted: Wed Jul 17, 2019 5:21 pm
by therube
I'd think that /PATTERN: would do it?

Code: Select all
/PATTERN:"*CORONATION* *coronation*"



(Kind of surprised that there is no /IGNORECASE, kind of thing.)

Re: How to filter?

PostPosted: Wed Jul 17, 2019 5:24 pm
by therube
/PATTERN relates to file selection
/REGEXP relates to file renaming

Re: How to filter?

PostPosted: Wed Jul 17, 2019 6:08 pm
by TestAccount123
Perfect! That clarified a lot more for me! :) Thank you!!