# Auto Renaming of filenames if duplicated

**URL:** https://community.mp3tag.de/t/auto-renaming-of-filenames-if-duplicated/9637
**Category:** Support
**Created:** [January 4, 2010, 11:40am UTC](https://community.mp3tag.de/t/auto-renaming-of-filenames-if-duplicated/9637 "2010-01-04T11:40:55Z")
**Posts on this page:** 1
**Showing post:** 9

<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: [February 2, 2011, 4:40pm UTC](https://community.mp3tag.de/t/auto-renaming-of-filenames-if-duplicated/9637/9 "2011-02-02T16:40:03Z")

</div>

I'd rather create a playlist with all duplicate tracks.  
Use **File \> Export** (Ctrl+E) and create a new config with this text.

```
$filename(Dupes-ArtistTitle.m3u8,utf-8)
$loop($lower(%artist% %title%))$loop($lower(%artist% %title%))$loopend()$ifgreater(%_max_counter%,1,'#Same Artist Title: '$if2(%artist% -- %title%,-- empty --)
$loop($lower(%artist% %title%))%_path%
$loopend(),)$loopend()
```

---

_[View the full topic](https://community.mp3tag.de/t/auto-renaming-of-filenames-if-duplicated/9637)._
