Creating a folder and moving files into it

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

Creating a folder and moving files into it

Postby jdubo79 » Tue Jul 27, 2010 1:48 pm

Hi,

I am not entirely sure this is possible with BRU, but I have thousands of files with names such as this

"Business Card - Set 1.jpg"
"Letterhead - Set 1.jpg"

What I would like to do is have BRU create a folder with the name "Set 1" and place the two above files within that folder.

Kindly let me know if this is possible. If I am unable to do this with BRU would anyone know of an easy way?

Thanks,
Jeremy
jdubo79
 
Posts: 2
Joined: Tue Jul 27, 2010 1:43 pm

Re: Creating a folder and moving files into it

Postby Stefan » Tue Jul 27, 2010 6:46 pm

Hi Jeremy, welcome.

jdubo79 wrote:Hi,

I am not entirely sure this is possible with BRU, but I have thousands of files with names such as this

"Business Card - Set 1.jpg"
"Letterhead - Set 1.jpg"

What I would like to do is have BRU create a folder with the name "Set 1" and place the two above files within that folder.

Kindly let me know if this is possible. If I am unable to do this with BRU would anyone know of an easy way?

Thanks,
Jeremy

If BRU would allow us to use an "\" to create new folders, we could do that by an Regular Expression f.ex.
But BRU doesn't.

What is the common pattern to get the folder name from the file name?
Always 'Set 1' ?
Or every time the part behind the - dash?
Where should the folder be created? Just as sub-folder?
You should provide more info if you ask for help somewhere.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Creating a folder and moving files into it

Postby jdubo79 » Fri Jul 30, 2010 4:51 pm

Sorry for not providing enough info.

The folder name would need to be everything after behind - .

And yes the folder can be a subfolder in the current directory or may be placed in any directory if that makes things easier somehow.
jdubo79
 
Posts: 2
Joined: Tue Jul 27, 2010 1:43 pm

Re: Creating a folder and moving files into it

Postby Stefan » Fri Jul 30, 2010 9:14 pm

I thought it would work with the command line utility BRC, but only partly :(

FROM:
X:\Folder\Business Card - Set 1.jpg
X:\Folder\Letterhead - Set 1.jpg
TO:
X:\Folder\Set 1\Business Card - Set 1.jpg
X:\Folder\Set 1\Letterhead - Set 1.jpg
DO:
BRC32.exe /PATTERN:"*.jpg" /REGEXP:"(.+) - (.+)":"\2\\1 - \2"
/EXECUTE

But... this works only if the folder "Set 1" already exists.
So if you can create this folders first by hand you can use BRC. But test this with some test files in an temp folder first!






If you can't do that work you may test an other tool, see >>> http://www.den4b.com/forum/viewtopic.php?pid=4814

.
.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to BRU Support