Rename folder error - folder named "A10"

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

Rename folder error - folder named "A10"

Postby samjj » Thu Mar 15, 2012 1:02 pm

I am using Bulk Rename Command triggered from a batch file to rename files according to their folder name. It works fine with folder names A1, A2, A3 etc, and with A11, A12. But, when I try and rename a file using folder name A10, it renames the folder A1.

Here is my command line input:
C:\BRC\BRC32.EXE /DIR:%1 /PATTERN:"*488*.tif" /RECURSIVE /APPENDFOLDER:P:_:1 /REMOVECHARS:" - n000000" /EXECUTE

%1 is the folder name input from another file (VBScript). I want to rename all .tif files with 488 in the title from all subfolders removing the end part (" - n000000") and appending the folder name. As I say, it works for all folders except those with 0 at the end.

Any help/workaround would be much appreciated,
Sam
samjj
 
Posts: 1
Joined: Thu Mar 15, 2012 12:58 pm

Re: Rename folder error - folder named "A10"

Postby Wilson » Fri Mar 16, 2012 1:21 pm

As a wild guess, maybe /REMOVECHARS: ... is the option responsible for the missing '0'.Since the order of options has an importance, switching /REMOVECHARS and /APPENDFOLDER might produce the intended resuly.

C:\BRC\BRC32.EXE /DIR:%1 /PATTERN:"*488*.tif" /RECURSIVE /REMOVECHARS:" - n000000" /APPENDFOLDER:P:_:1 /EXECUTE

Try that.
Wilson
 
Posts: 5
Joined: Mon Feb 27, 2012 7:23 pm


Return to BRC Support