How to filter?

Post any Bulk Rename Command support requirements here. Open to all registered users.

How to filter?

Postby TestAccount123 » Wed Jul 17, 2019 1:13 pm

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
TestAccount123
 
Posts: 2
Joined: Wed Jul 17, 2019 1:06 pm

Re: How to filter?

Postby therube » Wed Jul 17, 2019 5:21 pm

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.)
therube
 
Posts: 1026
Joined: Mon Jan 18, 2016 6:23 pm

Re: How to filter?

Postby therube » Wed Jul 17, 2019 5:24 pm

/PATTERN relates to file selection
/REGEXP relates to file renaming
therube
 
Posts: 1026
Joined: Mon Jan 18, 2016 6:23 pm

Re: How to filter?

Postby TestAccount123 » Wed Jul 17, 2019 6:08 pm

Perfect! That clarified a lot more for me! :) Thank you!!
TestAccount123
 
Posts: 2
Joined: Wed Jul 17, 2019 1:06 pm


Return to BRC Support