# remove part of folderpath from filename

**URL:** <https://community.mp3tag.de/t/remove-part-of-folderpath-from-filename/18748>\
**Category:** Support\
**Created:** [February 24, 2017, 3:13pm UTC](https://community.mp3tag.de/t/remove-part-of-folderpath-from-filename/18748 "2017-02-24T15:13:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peymanch](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@peymanch](https://community.mp3tag.de/u/peymanch)\
**Post date:** [February 24, 2017, 3:13pm UTC](https://community.mp3tag.de/t/remove-part-of-folderpath-from-filename/18748/1 "2017-02-24T15:13:34Z")

</div>

**hi  
i want remove part of folderpath from filename  
part of folderpath is:  
$regexp(%\_folderpath%,\w:\\(._)\\(._)\\$,$2)**

please help me

---

<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:** [February 24, 2017, 3:44pm UTC](https://community.mp3tag.de/t/remove-part-of-folderpath-from-filename/18748/2 "2017-02-24T15:44:54Z")

</div>

Sorry, I dont believe you.  
Either you address %\_filename% then all \ are illegal and you really get only teh plain filename.  
Rr you address %\_folderpath% but then the filename is not included.

---

<div class="post-metadata">

**Author:** ![peymanch](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@peymanch](https://community.mp3tag.de/u/peymanch)\
**Post date:** [February 24, 2017, 3:58pm UTC](https://community.mp3tag.de/t/remove-part-of-folderpath-from-filename/18748/3 "2017-02-24T15:58:02Z")

</div>

> [@ohrenkino](#):
>
> Sorry, I dont believe you.  
> Either you address %\_filename% then all \ are illegal and you really get only teh plain filename.  
> Rr you address %\_folderpath% but then the filename is not included.

**no dear friend i split folderpath  
i want characters after last   
for example  
folderpath is: N:\MUSIC VIDEO\Lady Gaga  
filename is: lady gaga-bad-romance.mp3**

 

**i want change filename to: -bad-romance.mp3**

---

<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:** [February 24, 2017, 4:01pm UTC](https://community.mp3tag.de/t/remove-part-of-folderpath-from-filename/18748/4 "2017-02-24T16:01:07Z")

</div>

> [@peymanch](#):
>
> **no dear friend i split folderpath  
> i want characters after last   
> for example  
> folderpath is: N:\MUSIC VIDEO\Lady Gaga  
> filename is: lady gaga-bad-romance.mp3**
> 
>  
> 
> **i want change filename to: -bad-romance.mp3**

What have you stored in the tag fields?  
But even the filename you show now has no \ in it.

It would be easiest to write a new filename with  
Convert\>Tag-Filename: %title%

---

<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:26pm UTC](https://community.mp3tag.de/t/remove-part-of-folderpath-from-filename/18748/5 "2026-02-09T12:26:42Z")

</div>


