# Can mp3tag move AND rename ALL files from one directory to another?

**URL:** https://community.mp3tag.de/t/can-mp3tag-move-and-rename-all-files-from-one-directory-to-another/44006
**Category:** General Discussion
**Created:** [December 25, 2018, 2:30pm UTC](https://community.mp3tag.de/t/can-mp3tag-move-and-rename-all-files-from-one-directory-to-another/44006 "2018-12-25T14:30:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vittorio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vittorio/32/424_2.png) [@vittorio](https://community.mp3tag.de/u/vittorio)
#### Post date: [December 25, 2018, 2:30pm UTC](https://community.mp3tag.de/t/can-mp3tag-move-and-rename-all-files-from-one-directory-to-another/44006/1 "2018-12-25T14:30:22Z")

</div>

Hello, Merry Christmas and happy holidays to everyone!

I'd like to know, if mp3tag is capable of moving non-mp3 files as well as removing dead folders. Maybe even in one step.

foobar does this pretty well, but I'd like to do this task with mp3tag since it has enhanced scripting functionality.

For example I have the following situation:

**Album Artist\Album\01. Title One.mp3**  
**Album Artist\Album\02. Title Two.mp3**  
**Album Artist\Album\03. Title Three.mp3**  
**...**  
**Album Artist\Album\10. Title Ten.mp3**  
**Album Artist\Album\folder.jpg**  
**Album Artist\Album\cover.jpg**  
**Album Artist\Album\info.jpg**

What I want to get is this:

**Album Artist\Album Artist - [Year] Album\Artist - 01 - Title One.mp3**  
**Album Artist\Album Artist - [Year] Album\Artist - 02 - Title Two.mp3**  
**...**  
**etc.**

I already found some topics, so maybe this question can be merged... but I'm not sure about that...  
[topic 1](https://community.mp3tag.de/t/moving-all-files-including-non-mp3-and-rename-if-required/19511/5)  
[topic 2](https://community.mp3tag.de/t/move-files-to-parent-folder-rename-that-folder-in-one-actiongroup/14685/6)  
[topic 3](https://community.mp3tag.de/t/need-some-help-moving-files-to-new-location/19701/9)

Greetings  
Vittorio

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [December 25, 2018, 3:59pm UTC](https://community.mp3tag.de/t/can-mp3tag-move-and-rename-all-files-from-one-directory-to-another/44006/2 "2018-12-25T15:59:40Z")

</div>

For me it is not quite clear what should happen to the source folder:  
Should it be kept?  
Then use the function Convert\>Tag-Filename and include preferably a fully qualified filename with everything, drive letter, full path and filename. This moves only the files to the new destination.  
If you want to rename the folder and the files, then it is a 2 step action (or the application of 2 converters):  
One step to rename the files and keep them in the current folder. -\> this is the well-know function Convert\>Tag-Filename.  
The other stept to rename only the folder and take all including files with it. -\>This is the function Convert\>Tag-Tag for \_DIRECTORY. Enter the full path except the filename.

---

<div class="post-metadata">

### Author: ![vittorio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vittorio/32/424_2.png) [@vittorio](https://community.mp3tag.de/u/vittorio)
#### Post date: [December 26, 2018, 12:11pm UTC](https://community.mp3tag.de/t/can-mp3tag-move-and-rename-all-files-from-one-directory-to-another/44006/3 "2018-12-26T12:11:04Z")

</div>

> Then use the function Convert\>Tag-Filename and include preferably a fully qualified filename with everything, drive letter, full path and filename. This moves only the files to the new destination.  
> If you want to rename the folder and the files, then it is a 2 step action (or the application of 2 converters):  
> One step to rename the files and keep them in the current folder. -\> this is the well-know function Convert\>Tag-Filename.  
> The other stept to rename only the folder and take all including files with it. -\>This is the function Convert\>Tag-Tag for \_DIRECTORY. Enter the full path except the filename.

Thanks for your reply, but I don't understand how this could be done.

1. "a 2-step action"  
do you mean [ALT]+[6] Action groups?  
It doesn't seem that "Convert Tag\>Filename" is available as an action.
2. "rename only the folder and take all including files with it"  
What does "Convert Tag\>Tag" for "\_DIRECTORY" mean?  
There is no such field like "\_DIRECTORY"  
Could you give me an example?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [December 26, 2018, 11:14pm UTC](https://community.mp3tag.de/t/can-mp3tag-move-and-rename-all-files-from-one-directory-to-another/44006/4 "2018-12-26T23:14:24Z")

</div>

> [@vittorio](#):
>
> There is no such field like "\_DIRECTORY"

Yes, there is. You have to type it in.  
You did not answer the question

> [@ohrenkino](#):
>
> what should happen to the source folder:  
> Should it be kept?

Yes, that was a little ambiguous, talking about "action" and then tell about the "Convert" functions.  
I meant the Convert function which have to be applied in 2 steps.

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [December 27, 2018, 5:57am UTC](https://community.mp3tag.de/t/can-mp3tag-move-and-rename-all-files-from-one-directory-to-another/44006/5 "2018-12-27T05:57:13Z")

</div>

> [@vittorio](#):
>
> What does "Convert Tag\>Tag" for "\_DIRECTORY" mean?  
> There is no such field like "\_DIRECTORY"  
> Could you give me an example?

Ohrenkinos solution refers to the functions of the Converter-menue, which is very good for beginners because it has a preview. You can immediately see the result of your format strings and test them.

But you can do it also with an action-group:

1. Action:  
Type: Format Value  
Field: : \_FILENAME  
Format String: `%artist% - %track% - %title%`

2. Action:  
Type: Format Value  
Field: \_DIRECTORY  
Format String: `D:\Mp3s\%albumartist%\%albumartist% - '['%year%']' %album%\`

Be aware that under some conditions the former directory will remain and empty.  
You can delete empty directories later with one of the many tools like  
" Remove Empty Directories" or "Delete empty folders" or "Empty Folder Nuker" in one go.

\_FILENAME and \_DIRECTORY are not tag-fields, they are information field within MP3Tag but they work also with format value.
