# Changing file name from Title, with a twist

**URL:** https://community.mp3tag.de/t/changing-file-name-from-title-with-a-twist/15576
**Category:** General Discussion
**Created:** [March 12, 2014, 7:32pm UTC](https://community.mp3tag.de/t/changing-file-name-from-title-with-a-twist/15576 "2014-03-12T19:32:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JPWRana](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/f9ae1b/32.png) [@JPWRana](https://community.mp3tag.de/u/JPWRana)
#### Post date: [March 12, 2014, 7:32pm UTC](https://community.mp3tag.de/t/changing-file-name-from-title-with-a-twist/15576/1 "2014-03-12T19:32:51Z")

</div>

I have a folder with 135 mp3's. I was able to successfully change their file name to the same as the Title.

However, there is a small quick that I was wondering can be batched. In the Title, is there a way that I can tell the software:  
Change the file name to all 135 mp3's to what the Title of the mp3 is, BUT when you do that, remove the "-P" that is present in every one of the 135 mp3's?

I would hate to have to do this manually.

I already know I can export a list as a CSV file and open in excel, and from there use operators to do this, but I don't know if I can THEN import this back to mp3tag.

---

<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: [March 12, 2014, 7:35pm UTC](https://community.mp3tag.de/t/changing-file-name-from-title-with-a-twist/15576/2 "2014-03-12T19:35:59Z")

</div>

You could try an action of the type "Replace" for \_FILENAME  
Enter as search string: -P  
Enter as replace string:  
(leave that empty)

---

<div class="post-metadata">

### Author: ![chrishirst](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@chrishirst](https://community.mp3tag.de/u/chrishirst)
#### Post date: [March 12, 2014, 10:56pm UTC](https://community.mp3tag.de/t/changing-file-name-from-title-with-a-twist/15576/3 "2014-03-12T22:56:39Z")

</div>

Convert Tag to file name

Alt+1

Format string: $replace(%title%,'-p',)

---

<div class="post-metadata">

### Author: ![JPWRana](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/f9ae1b/32.png) [@JPWRana](https://community.mp3tag.de/u/JPWRana)
#### Post date: [March 15, 2014, 10:21pm UTC](https://community.mp3tag.de/t/changing-file-name-from-title-with-a-twist/15576/4 "2014-03-15T22:21:39Z")

</div>

Thanks Chris!

At first it didn't work, but then I replaced the "-p" to a "'-P", and that did the trick!
