#1 : 20/07-24 12:09 Nick
Posts: 1
|
I have a really long list of files like
ABBA_Knowing_Me_Knowing_You-00-CLICK.mp3 .... ABBA_Voulez_Vous-02-BASS.mp3 ABBA_Voulez_Vous-03-DRUMS.mp3 ABBA_Voulez_Vous-13-LEADVOX.mp3 .... Adele_Lovesong-04-PERC-Congas.mp3 They are like <song_title>-<trackname>.mp3 I want to create subfolders for the various songs and move the files there like this Adele_Lovesong-04-PERC-Congas.mp3 -> Adele_Lovesong/Adele_Lovesong_04-PERC-Congas.mp3 I basically have to get the part of the name up the first '-' then create a subfolder with the track name and move the files there How can I do it? Thanks Nick |
#2 : 20/07-24 13:14 Miguel
Posts: 136
|
Reply to #1:
Hi Nick In the Bacht mode select MOv or COPY and in the Output folder put the target folder. For example. Bacht Mode: Move Output folder: <Drive>:\<Path>\<Substr:1:-> Example: D:\Music\Folders\<Substr:1:-> The <Substr:1:-> command will extract all the words till find the first hyphen (-) and will create a folder. The songs with the same words will be move to the same folder. Example: ABBA_Voulez_Vous-02-BASS.mp3 ABBA_Voulez_Vous-03-DRUMS.mp3 ABBA_Voulez_Vous-13-LEADVOX.mp3 This songs will be move to the folder \ABBA_Voulez_Vous I hope this is what you want. Miguel |
#3 : 20/07-24 13:22 Delta Foxtrot
Posts: 285
|
Reply to #1:
EDIT: Hola Miguel, you beat me by a few seconds this time! :) Hi Nick, The <substr> tag is your friend. Set the BATCH MODE to move, of course (or copy if you want to leave a copy at the original location while testing). Let's say you want the new folders created in the directory "C:\test"; you'd set the Output folder field to c:\test\<substr:1:"-"> Load your files into ARen and execute the batch (no methods needed - you are not changing the filename). You've just told ARen you want the files put into a folder that is made up of the part of the filename before the dash. ARen will create the folder for the first file, then copy or move the rest of the files to that directory once created. If you make a mistake remember you can always undo the batch. Best, DF |
#4 : 20/07-24 15:53 Miguel
Posts: 136
|
Reply to #3:
EDIT: I should have suspected that the problem lay in the spaces. <Substr:1:-> Fail. <Substr:1:" -":- > Work Move-copy to a folder with the Title. :) I beat you but perhaps i have done something wrong. My solution work with the name´s format given by Nick but i have tried with this name and can´t move the file. Perhaps you can tell me what i´m doing bad. 01 - Rolling in the Deep - Adele I have used <Substr:1:-> This should be move to a folder called 01 but can´t ge it. I get the next error: Error code: 101 Error Desc. The system can not find the path specified. It create the folder 01 but no copy or move the file. Another thing. You have enclose the hyphen between quotation marks. Are they necessary? Thank you. Miguel |
#5 : 21/07-24 00:26 Delta Foxtrot
Posts: 285
|
Reply to #4:
Hey Miguel, I use the quotes for anything not a number POSITION. It may not be necessary but it works and eliminates any ambiguity for me when reading it after a few months. :) EDIT: I just tried your Adele example and I think it might be because the last character in the substring is a space. Don't know for sure but the strict substring would end in a space and of course a directory can't end in a space, so perhaps ARen can't "find" the directory name without the space at the end. When I use <substr:1:" -"> it works (space before the dash in the last substr parameter). END EDIT Best, DF |