# Filename function in export configurations

**URL:** https://community.mp3tag.de/t/filename-function-in-export-configurations/15820
**Category:** Support
**Created:** [June 18, 2014, 5:18pm UTC](https://community.mp3tag.de/t/filename-function-in-export-configurations/15820 "2014-06-18T17:18:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [June 19, 2014, 3:53am UTC](https://community.mp3tag.de/t/filename-function-in-export-configurations/15820/2 "2014-06-19T03:53:11Z")

</div>

> [@aax](#):
>
> I can't figure out how to use it. ...

Here is an example export script, have a closer look at the $filename directive ...

**1: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.tagdump.'$replace(%\_datetime%,' ','.','-',)'.txt',UTF-8)** 

**2: $loop(%_path%__)'^'  
3: $regexp($regexp($list(,': ''',''$char(13)'_'$char(10)),'\r\n','U+000DU+000A'),'\r\_\n','\r\n')'\*'  
4: $regexp($regexp($listtec(,': ''',''$char(13)'_'$char(10)),'\r\n','U+000DU+000A'),'\r_\n','\r\n')'$'  
5: $loopend()  
6: 'MP3TAGAPP: '''$getEnv('MP3TAGAPP')''  
7: 'MP3TAGAPPDATA: '''$getEnv('MP3TAGAPPDATA')''**

 

DD.20140619.0753.CEST

---

_[View the full topic](https://community.mp3tag.de/t/filename-function-in-export-configurations/15820)._
