folder name from file name

Advanced Renamer forum
#1 : 25/03-16 02:37
B young
B young
Posts: 4
I have files like

Maria Sullivan-Hello, Morning.mp3
Ted Young & Travis Tim-This is not right.mp3
Eldon John-Love.mp3
Amada Lee & John Copper-Brothers.mp3

....


In deb4d renamer, I can add folder name to them and find "&" and put to a special folder:
Maria Sullivan\Maria Sullivan-Hello, Morning.mp3
(chorus)\Ted Young & Travis Tim-This is not right.mp3
Eldon John\Eldon John-Love.mp3
(chorus)\Amada Lee & John Copper-Brothers.mp3


Is it possible to make this happens with Advanced Renamer?


25/03-16 02:37
#2 : 26/03-16 21:14
Kim Jensen
Kim Jensen
Administrator
Posts: 799
Reply to #1:
Do you want to move the files? You will then need to use the move batch mode.
https://www.advancedrenamer.com/user_guide/batch mode

In the new folder edit box you can use tags to specify the folder. Non-existing folders will be automatically created when running the batch.


26/03-16 21:14
#3 : 29/03-16 09:45
B young
B young
Posts: 4
Reply to #2:

I am ok to move files but I cannot find a way to move files to a special folder "(chorus)\" when & is detected.


29/03-16 09:45
#4 : 30/03-16 20:00
Chris
Chris
Posts: 4
Reply to #1:
Hi there, you are able to achieve this with the "Script Method". I hope this meets your requirements. Copy and paste the pastebin code in to a Script Method and press Apply, then try to batch convert those files. Looking forward to your reply:
http://pastebin.com/CrKptchL


30/03-16 20:00
#5 : 31/03-16 07:31
B young
B young
Posts: 4
Reply to #4:


Works perfectly thank you!

However, it will be even better if the script result can be previewed before running.

one more question, if I have the same filepath\filename, how can I add addition collision rule such as (#) to the end of the filename? eg. aaa-fdafdasfs(2).mp3 I tried to write a script for it but I cannot find a way to detect if the file is there already.

thanks!



31/03-16 07:31