Page 1 of 1

Windows 10 BRC CLI cannot replace % symbols

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

Re: Windows 10 BRC CLI cannot replace % symbols

PostPosted: Fri Jan 10, 2020 1:18 am
by therube
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

Re: Windows 10 BRC CLI cannot replace % symbols

PostPosted: Fri Jan 10, 2020 7:28 am
by spellng
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