Curly quotes seem to break BRC

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

Curly quotes seem to break BRC

Postby Dsastray » Wed May 29, 2019 10:11 pm

Hi, I've noticed curly quotes seem to break BRC.

I have 2 files
Code: Select all
School and District Reports@St. Rosalie School Profile Report.pdf
School and District Reports_D’Arbonne Woods Charter School Profile Report.pdf
(note the curly quote)

I run a batch file with the contents:
Code: Select all
"C:\Program Files\Bulk Rename Utility\BRC\BRC64.exe" /DIR:"C:\Blah" /PATTERN:"*Report.pdf" /REGEXP:"(.+)_(.+)":"\1\\2" /EXECUTE

Should put
"School and District Reports_D’Arbonne Woods Charter School Profile Report.pdf"
into the folder
"School and District Reports"
and rename it
"D’Arbonne Woods Charter School Profile Report.pdf"
and leave
"School and District Reports@St. Rosalie School Profile Report.pdf"
alone.

Instead it renames
"School and District Reports_D’Arbonne Woods Charter School Profile Report.pdf"
as
"Dt. Rosalie School Profile Report.pdf"
and leaves it in the root folder.
(As expected,
"School and District Reports@St. Rosalie School Profile Report.pdf"
remains unchanged.)

I have tried some other stuff (unicode batch file) to replace the curly quote first, but it still seems to really break BRC. It shouldn't be renaming the file with the contents of the next file in line, should it?

Any help is appreciated.
Dsastray
 
Posts: 3
Joined: Wed Jul 04, 2018 1:15 am

Re: Curly quotes seem to break BRC

Postby therube » Thu May 30, 2019 3:08 am

Instead it renames
"School and District Reports_D’Arbonne Woods Charter School Profile Report.pdf"
as
"Dt. Rosalie School Profile Report.pdf"

Well that sure is weird.
A bug, I'd think?

Should put
...
into the folder
"School and District Reports"

Not said, but, "\School and District Reports\" has to be preexisting.


This should work as a work-around:
Code: Select all
/REPLACECI:':'

so...
Code: Select all
BRC32.exe /DIR:"." /PATTERN:"*Report.pdf" /replaceci:':'  /REGEXP:(.+)_(.+):"\1\\2" /execute


(I'm on Win7, at the moment.
Note that the two "quotes" in the /RECPLACECI are different, with the former being a "curly" & the latter a "regular".
"Regular" you can "just do". "Curly", I did via copy paste. Copy from your post/filename, paste at the Windows command line.
[Untested in a batch file.] )



(Another user seemed to have trouble with "unicode" chars, Change Mac file name special character on a PC.
[Valid] picture link to the final post in that thread,https://postimg.cc/QVCckfpM.)
therube
 
Posts: 536
Joined: Mon Jan 18, 2016 6:23 pm

Re: Curly quotes seem to break BRC

Postby Dsastray » Wed Jun 19, 2019 8:36 pm

Hmmm. Something about the batch file itself must break it. If I paste your code into the command line, it works great. If I paste into the batch file, no dice.

I think this is a limitation of batch files, maybe. :/
Dsastray
 
Posts: 3
Joined: Wed Jul 04, 2018 1:15 am


Return to BRC Support