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 spellng » Fri Jan 10, 2020 12:31 am

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.
spellng
 
Posts: 6
Joined: Fri Jan 10, 2020 12:20 am

Re: Windows 10 BRC CLI cannot replace % symbols

Postby therube » Fri Jan 10, 2020 1:18 am

From a command line, it "just works".
Code: Select all
brc32.exe /replaceci:%:Z

Filename BRC32 - %Copy.exe would be renamed to BRC32 - ZCopy.exe


From a batch file, you need "escape" the %.

go.bat:
Code: Select all
brc32  /replaceci:%%:Z
pause

Filename BRC32 - %Copy.exe would be renamed to BRC32 - ZCopy.exe
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Windows 10 BRC CLI cannot replace % symbols

Postby spellng » Fri Jan 10, 2020 7:28 am

Thanks very much - it worked - I was running it in a batch file - I forgot the windows way to escape - I was trying "\" - D'Oh!

:D :D :D :D :D
spellng
 
Posts: 6
Joined: Fri Jan 10, 2020 12:20 am


Return to BRU Support