shelldirectoryrenamesubdirectorytotal-commander

Rename subfolder: add leading word from parent folder


I have a large music library organized in Artist folders with Album subfolders:

Artist 1
- Album A
-- File 1
-- File 2
- Album B
-- File 1
-- File 2
Artist 2
- Album C
-- File 1
-- File 2
- Album D
-- File 1
-- File 2

Now I want to rename all Album folders by adding the Artist name as prefix AND move all Album folders in to the root directory, like this:

Artist 1 - Album A
- File 1
- File 2
Artist 1 - Album B
- File 1
- File 2
Artist 2 - Album C
- File 1
- File 2
Artist 2 - Album D
- File 1
- File 2

What is the best way to do that? I tried to do it with Total Commander, but I don't get it. Or maybe shell, mp3tag? I use Windows 10. Thanks!


Solution

  • I found an answer by myself. The best way to do it is to use mp3tag tool. You can create new folders and copy your files in it.

    1. Select Converter > Tag - Filename

    2. Type in:

      E:\%artist% - %album%\$num(%track%,2) - %title%
      

    You'll receive a directory with Artist - Albumname\01 - File.mp3