# deleting directorys after renaming

**URL:** https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499
**Category:** General Discussion
**Created:** [June 26, 2006, 9:09pm UTC](https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499 "2006-06-26T21:09:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pdv](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pdv](https://community.mp3tag.de/u/pdv)
#### Post date: [June 26, 2006, 9:09pm UTC](https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499/1 "2006-06-26T21:09:53Z")

</div>

I am not sure how to use this forum - I could not figure out how to post a question under another thread, so I am posting it here.

I read a thread - "only missing feature" that descibes what I would like to do. The response from AFAIK was to use Format values and \_DIRECTORY as field

I did not understand how to do that. Could someone explain it to me?

I am renaming files and changing the folder name, and I did not want to have to go and remove the old folder. I just wanted it to be renamed to the new folder name.

Thank You

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [June 28, 2006, 2:00pm UTC](https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499/2 "2006-06-28T14:00:40Z")

</div>

Here's written how to create a new action:  
[Actions](https://community.mp3tag.de/t/967/1)

As you said, you need the action type "Format value" with the field **\_DIRECTORY**  
And as format string something like **%artist%-%album%**

---

<div class="post-metadata">

### Author: ![Zoofield](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zoofield/32/136_2.png) [@Zoofield](https://community.mp3tag.de/u/Zoofield)
#### Post date: [July 20, 2006, 7:00pm UTC](https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499/3 "2006-07-20T19:00:44Z")

</div>

Thank you... 🙂 But .

How do i escape(keep) the []

so it looks like this

[1801] - Live

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [July 21, 2006, 3:59am UTC](https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499/4 "2006-07-21T03:59:00Z")

</div>

'[' and ']'

---

<div class="post-metadata">

### Author: ![pdv](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pdv](https://community.mp3tag.de/u/pdv)
#### Post date: [July 27, 2006, 7:51pm UTC](https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499/5 "2006-07-27T19:51:42Z")

</div>

> [@pdv](#):
>
> I am not sure how to use this forum - I could not figure out how to post a question under another thread, so I am posting it here.
> 
> I read a thread - "only missing feature" that descibes what I would like to do. The response from AFAIK was to use Format values and \_DIRECTORY as field
> 
> I did not understand how to do that. Could someone explain it to me?
> 
> I am renaming files and changing the folder name, and I did not want to have to go and remove the old folder. I just wanted it to be renamed to the new folder name.
> 
> Thank You

I Set up and Actio to chnage the path --- \_Directory: %artist%\%album%..... but when I do this action it changes every file with the same album but makes the artist the first one that is highlited.

Is there something I am missing

Thanks

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [July 28, 2006, 5:50pm UTC](https://community.mp3tag.de/t/deleting-directorys-after-renaming/3499/6 "2006-07-28T17:50:35Z")

</div>

Not sure what exactly you are trying to say, but if you use a backslash in the string, make sure you only select one file per directory!
