# Delete Filename Based On Current Folder

**URL:** https://community.mp3tag.de/t/delete-filename-based-on-current-folder/3786
**Category:** Support
**Created:** [September 19, 2006, 9:10am UTC](https://community.mp3tag.de/t/delete-filename-based-on-current-folder/3786 "2006-09-19T09:10:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BastionOfChaos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@BastionOfChaos](https://community.mp3tag.de/u/BastionOfChaos)
#### Post date: [September 19, 2006, 9:10am UTC](https://community.mp3tag.de/t/delete-filename-based-on-current-folder/3786/1 "2006-09-19T09:10:07Z")

</div>

Hi,

I am trying to rename my song filenames from the current format "Artist - Folder - Track Number - Track Title" to just "Track Number - Track Title"

e.g. "Anathema - 05. Eternity - 01 - Sentient (Instrumental).mp3" to "01 - Sentient (Instrumental).mp3"

I have tried variations of the following command, however they don't seem to work.

Replace "\_FILENAME": %\_directory%" -\> ""

Could anyone help me out with this?

Also due to an error earlier on (that cannot be undone by Ctrl-Z) the filenames also have the tracknumber in front of them. Is it possible to delete the first 3 characters of a filename only?

Thank you in advance.  
Brad

---

<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: [September 19, 2006, 9:56am UTC](https://community.mp3tag.de/t/delete-filename-based-on-current-folder/3786/2 "2006-09-19T09:56:03Z")

</div>

You could use "Convert \> Filename - Filename" with  
mask old filename:  
%1 - %2 - %3 - %4  
mask new filename:  
%3 - %4

> [@](#):
>
> Also due to an error earlier on (that cannot be undone by Ctrl-Z) the filenames also have the tracknumber in front of them. Is it possible to delete the first 3 characters of a filename only?

[Actions](https://community.mp3tag.de/t/967/1)

---

<div class="post-metadata">

### Author: ![BastionOfChaos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@BastionOfChaos](https://community.mp3tag.de/u/BastionOfChaos)
#### Post date: [September 19, 2006, 11:27am UTC](https://community.mp3tag.de/t/delete-filename-based-on-current-folder/3786/3 "2006-09-19T11:27:22Z")

</div>

Thank you very much for your help, I found out how to remove the track numbers before your reply with a program called Total Commander, however by changing the mask filename like you suggested fixed this also, so it fixed two problems in one. Once again, thanks for your help.

> [@dano](#):
>
> You could use "Convert \> Filename - Filename" with  
> mask old filename:  
> %1 - %2 - %3 - %4  
> mask new filename:  
> %3 - %4
> 
> [Actions](https://community.mp3tag.de/t/967/1)

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:19pm UTC](https://community.mp3tag.de/t/delete-filename-based-on-current-folder/3786/4 "2026-02-09T12:19:53Z")

</div>


