# export csv with foldername and total time

**URL:** https://community.mp3tag.de/t/export-csv-with-foldername-and-total-time/12016
**Category:** Export
**Created:** [May 16, 2011, 5:16pm UTC](https://community.mp3tag.de/t/export-csv-with-foldername-and-total-time/12016 "2011-05-16T17:16:40Z")
**Posts on this page:** 1
**Showing post:** 14

<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: [May 20, 2011, 11:47am UTC](https://community.mp3tag.de/t/export-csv-with-foldername-and-total-time/12016/14 "2011-05-20T11:47:56Z")

</div>

Here is a variation of Dano's proposal from post #11.

**$filename($getEnv('USERPROFILE')'\Desktop\'%\_workingdir%' -- Folder Total Time.txt',ANSI)'Folder Total Time' $loop($regexp(%\_folderpath%,'\,\*\s\*CD\s\*\d+\\\\$',,1),1)$num(%\_counter%,3)'|'%\_total\_time%'|'$regexp(%\_folderpath%,'\,\*\s\*CD\s\*\d+\\\\$',,1) $loopend()$repeat('=',3)'|'%\_total\_time%'|'$repeat('=',3)** 

Example output:

```
Folder Total Time
001|07:17:52|M:\VA COMPILATIONS\0-9\100 Prozent Rock\
002|01:11:25|M:\VA COMPILATIONS\0-9\2 Meter Sessies Vol.4\
...
234|01:31:43|M:\VA COMPILATIONS\W\Wuppstock 1973\
===|14 Days, 20:20:03|===

```

DD.20110520.1548.CEST

---

_[View the full topic](https://community.mp3tag.de/t/export-csv-with-foldername-and-total-time/12016)._
