# Export script - track file reference relative to output file

**URL:** https://community.mp3tag.de/t/export-script-track-file-reference-relative-to-output-file/8697
**Category:** Support
**Created:** [August 1, 2009, 12:23pm UTC](https://community.mp3tag.de/t/export-script-track-file-reference-relative-to-output-file/8697 "2009-08-01T12:23:29Z")
**Posts on this page:** 1
**Showing post:** 10

<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: [August 2, 2009, 10:20am UTC](https://community.mp3tag.de/t/export-script-track-file-reference-relative-to-output-file/8697/10 "2009-08-02T10:20:07Z")

</div>

> [@chrisjj](#):
>
> ... The problem is that the track filepath comes out as e.g. \<a href="S:\Music\album\disc\track.mp3" which is not relative to the output file. Causing the link to break if the output file and tracks are moved to another drive or folder.

Try something out to compose a relative folderpath ...

```
_volume .................: %_volume%
_parent_directory .......: %_parent_directory%
_workingdir .............: %_workingdir%
_workingpath ............: %_workingpath%
_path ...................: %_path%
_folderpath .............: %_folderpath%
 depth_path .............: $folderdepth(%_folderpath%)
_folderpath_rel .........: %_folderpath_rel%
 depth_path_rel .........: $folderdepth(%_folderpath_rel%)
_directory ..............: %_directory%

```

DD.20090802.1415.CEST

---

_[View the full topic](https://community.mp3tag.de/t/export-script-track-file-reference-relative-to-output-file/8697)._
