Due to a 'bug' in Exact Audio Copy, I need a batch file to rename and sort some files for me.
Here's the deal;
I have a folder with lots of files. The files are in pairs, with different extentions.
For example, in the folder i have;
Coldplay - X&Y.cue
Coldplay - X&Y.flac.flac
Bonobo - Dial M For Monkey.cue
Bonobo - Dial M For Monkey.flac.flac
Tom Middleton - The Trip CD1.cue
Tom Middleton - The Trip CD1.flac.flac
...
What i need to do is have a batch file that renames all the files that have the extention .flac.flac so they have the extention .flac
Also, now here's the tricky bit, i would like the batch file to take the name of each file and generate a folder with the same name. Then move both files with the same name (.cue & .flac) into that folder.
Example;
D:\music\Coldplay - X&Y.flac.flac becomes D:\music\Coldplay - X&Y\Coldplay - X&Y.flac
The .cue does not need renaming but needs to be moved to the same folder as the .flac file.
This needs to loop and do all the files in the folder. Anyone reckon they can do it?