Page 1 of 1

A very large rename job over many folders

PostPosted: Mon Jun 10, 2013 4:35 am
by roylefamily
Hi,

Just downloaded the software. Before I delve I would like to check,

I am transferring a 10,000 song library to an original xbox for XBMC. The xbox operating system has a file length limit that causes grief on the transfer. Chopping off file names at a certain length can cause non unique file names. Various apps. exist to combat this but they are unreliable. As the library will index the music file meta tags the names aren't important.

I would like to do a mass renaming. The directory structure is flat with /Music/Album/songfile.mp3

I would like to end up with
Music/1/1.mp2
Music/1/2.mp2
.
.
Music/2/1.mp2
Music/2/2.mp2
.
.
and so on.

The job can rename all files regardless of if they are mp3, mu3, jpg etc.

An additional nicety would be if the jpg file can be renamed x.jpg were x is the folder name.

Thanks,

Steven

Re: A very large rename job over many folders

PostPosted: Mon Jun 10, 2013 5:36 am
by roylefamily
Hi,

So file numbering is easy, the trick is to get it to number all folder (can do that) but reset the counter in each folder.

Re: A very large rename job over many folders

PostPosted: Mon Jun 10, 2013 5:54 am
by roylefamily
Ok,

I'm self documenting now.

2; File remove

10; Prefix with folder ticked

File pane sorted on sub directory before rename.

All works. Now I need a second job to rename any image file to the directory name. This will make XBMC adopt it as the album thumbnail by default.

Re: A very large rename job over many folders

PostPosted: Mon Jun 10, 2013 6:39 am
by roylefamily
^.*(.jpg)$

Does this mean match any characters any number of times followed by a group ".jpg" ?

Re: A very large rename job over many folders

PostPosted: Mon Jun 10, 2013 12:28 pm
by roylefamily
So then I do the job again with section 12 enabled and *.jpg in the box.

Looks like I'm done except I only want the largest file size renamed if there is more than one jpg in a folder.