Having some strange behavior attempting to concatenate

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

Having some strange behavior attempting to concatenate

Postby PaydenKP » Wed Feb 07, 2018 5:48 pm

Using the latest version of BRC 64-bit (downloaded it today from the website), I get this when I attempt to concatenate all file and folder names to 15 characters or less.

Code: Select all
PS F:\directory\testing> BRC64.exe /REPLACECI:' ':_ /STRIPSYMBOLS /COPYFIRSTN:15 /REMOVENAME /PASTEATSTART /RECURSIVE

   Processing Folder F:\directory\testing\
      Filename BRC_WhatsPossible.txt would be renamed to BRCWhatsPossibl.txt

   Processing Folder F:\directory\testing\folder with spaces\
      Filename file with spaces.txt would be renamed to .txt
      Filename folder with spaces would be renamed to folderwithspace

   Processing Folder F:\directory\testing\folder-with!symbols@_& stuff\
      Filename file^with%symbols&)stuff.txt would be renamed to filewithsymbols.txt
      Filename folder-with!symbols@_& stuff would be renamed to folderwithsymbo

PS F:\directory\testing> BRC64.exe /REPLACECI:' ':_ /STRIPSYMBOLS /RECURSIVE

   Processing Folder F:\directory\testing\
      Filename BRC_WhatsPossible.txt would be renamed to BRCWhatsPossible.txt

   Processing Folder F:\directory\testing\folder with spaces\
      Filename file with spaces.txt would be renamed to filewithspaces.txt
      Filename folder with spaces would be renamed to folderwithspaces

Specifically this line:

Code: Select all
      Filename file with spaces.txt would be renamed to .txt

Whereas, this works fine:

Code: Select all
      Filename folder with spaces would be renamed to folderwithspace

And this works fine:

Code: Select all
      Filename file^with%symbols&)stuff.txt would be renamed to filewithsymbols.txt

I'm clueless as to why this is happening when the same command works fine on the other test files/folder.
PaydenKP
 
Posts: 1
Joined: Wed Feb 07, 2018 5:42 pm

Re: Having some strange behavior attempting to concatenate

Postby bru » Tue Mar 27, 2018 6:18 pm

Unfortunately, /CopyFirtstN only succeeds when there are at least N-chars to copy, so if theres a chance your names wont have enough chars, its better to use /RemoveFromTo.
In your case, try:
BRC64.exe /ReplaceCI:" ": /StripSymbols /RemoveFromTo:16:999 /Recursive
bru
 
Posts: 62
Joined: Wed Jan 31, 2018 7:35 pm


Return to BRC Support