Rename and move to other dir

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

Rename and move to other dir

Postby luca2c » Sun Feb 14, 2016 4:22 pm

Hi,
sorry for disturbing.. I've found no help to my needed use of BRC command-line.

my filesystem is:

c:\out
c:\in\dir1
c:\in\dir2
c:\in\dir3
...

and my first try is ( executed from the dir c:\in\ )
brc32 /execute /appendfolder:p:-:1 /nofolders /recursive /prefix:c:\out\

I need to move all files from dir1, dir2, dir3... to dir c:\out\ prefixing each files with his parent folder name.
I'd like to obtain something like:
c:\out\dir1-(filename1.ext)
c:\out\dir1-(filename2.ext)
c:\out\dir2-(file1.ext)
etc.

When I simulate I get:
Filename IMG4011.jpg would be renamed to c:\out\dir1-IMG4011.jpg

but when I execute I get:
Filename IMG4011.jpg could not be renamed to c:\out\dir1-IMG4011.jpg

and I don't understand why.
Thank you for your help.

regards, Luca
luca2c
 
Posts: 2
Joined: Sun Feb 14, 2016 4:05 pm

Re: Rename and move to other dir

Postby therube » Tue Feb 16, 2016 8:26 pm

> Rename and move

I suspect that BRC is not set up to be able to perform the move part of the operation?

> /prefix:c:\out\

While that seems logical, & preview does show your wanted results, (again) suspect that /prefix is expecting a name rather then a path+name, & that is the reason it fails (: and \ being illegal parts of a filename [and / ? < > * | " too]).
therube
 
Posts: 1317
Joined: Mon Jan 18, 2016 6:23 pm

Re: Rename and move to other dir

Postby therube » Tue Feb 16, 2016 8:59 pm

Could use BRC for the rename part, then some other utility (command-line or GUI) for the move part?
therube
 
Posts: 1317
Joined: Mon Jan 18, 2016 6:23 pm

Re: Rename and move to other dir

Postby luca2c » Thu Feb 18, 2016 11:37 pm

Thank you for replies..
I thought BRC can act like DOS rename where, if I specify a different path, rename act like move.

So, it means that with BRC there is no way to move or copy files to another dir.
A file can be renamed in many different and complex way, but it rest in the same dir.
Not a problem anyway.. I can use other 'global' command by 4NT to do the rest of job. :)

thanks!
regards, Luca
luca2c
 
Posts: 2
Joined: Sun Feb 14, 2016 4:05 pm


Return to BRU Support