# "Filename already exists" error and handling

**URL:** https://community.mp3tag.de/t/filename-already-exists-error-and-handling/19013
**Category:** Support
**Created:** [May 30, 2017, 2:40am UTC](https://community.mp3tag.de/t/filename-already-exists-error-and-handling/19013 "2017-05-30T02:40:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![soupcan113](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@soupcan113](https://community.mp3tag.de/u/soupcan113)
#### Post date: [May 30, 2017, 2:40am UTC](https://community.mp3tag.de/t/filename-already-exists-error-and-handling/19013/1 "2017-05-30T02:40:48Z")

</div>

I have many instances where I have more than one copy of a song. As a DJ this is especially true but even in the case of a track being on a studio album and then a compilation/greatest hits.  
I use a simple filenaming script and when using the convert function to name my files within Mp3Tag, the program will display an error if it attempts to name a file to a string that already exists in the same directory. Most programs, including Windows Explorer in general have a built in function to add text to the end of the filename, such as "(1)" to signify the name is a duplicate. Mp3Tag doesn't seem to do this automatically and I can't figure out how to write my script to make this happen. Suggestions?

In summary here's an example.

TRACK 1:  
Title: ABC  
Artist: Jackson 5  
Album: ABC

TRACK 2:  
Title: ABC  
Artist: Jackson 5  
Album: Motown Greatest Hits

desired filename for track 1:  
Jackson 5 - ABC (1).mp3

desired filename for track 2:  
Jackson 5 - ABC (2).mp3

Thank you for your time,  
Jonathan  
soupcan113

---

<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: [May 30, 2017, 3:21am UTC](https://community.mp3tag.de/t/filename-already-exists-error-and-handling/19013/2 "2017-05-30T03:21:06Z")

</div>

See [/t/9637/1](https://community.mp3tag.de/t/9637/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:26pm UTC](https://community.mp3tag.de/t/filename-already-exists-error-and-handling/19013/3 "2026-02-09T12:26:50Z")

</div>


