Windows 10 BRC CLI cannot replace % symbols?

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

Windows 10 BRC CLI cannot replace % symbols?

Postby JohnKarpenter » Thu Jan 21, 2021 3:52 pm

Hi,

I am running windows 10 pro 64-bit.

I have used brc64.exe in the command line to successfully remove all symbols below ascii 127 that I NEED to ---- EXCEPT for the %.

I am stuck and losing my hair.

There are some symbols that I do not want to remove - like _ (underscores).

I have tried the switch:

/replaceci:"%":"_"

to replace the % symbols with underscores but it does not work.

I don't want to use the switch /stripsymbols because it will remove some characters I need to keep.

I have played around and am able to replace all specials symbols suitable for filenames - except the % sign.

Not sure how to escape any characters if need be.

Any help would be greatly appreciated.
JohnKarpenter
 

Re: Windows 10 BRC CLI cannot replace % symbols?

Postby therube » Thu Jan 21, 2021 6:17 pm

Looks to work from a command line.
Are you running it from a batch file?

Code: Select all
C:\DEV>BRC  /REPLACECI:%:XXX

Filename WorkArea%-%Copy%.txt would be renamed to WorkAreaXXX-XXXCopyXXX.txt
Filename WorkArea.txt requires no changes



For a batch file, you'll need to escape the % with a second %.

go.bat:
Code: Select all
BRC  /REPLACECI:%%:XXX
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm


Return to BRU Support