# Tools: Using env variable in Path

**URL:** https://community.mp3tag.de/t/tools-using-env-variable-in-path/66743
**Category:** Support
**Created:** [December 5, 2024, 6:22pm UTC](https://community.mp3tag.de/t/tools-using-env-variable-in-path/66743 "2024-12-05T18:22:28Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [December 5, 2024, 7:05pm UTC](https://community.mp3tag.de/t/tools-using-env-variable-in-path/66743/4 "2024-12-05T19:05:41Z")

</div>

As far as I understand it, you set the environment variables outside MP3tag and then reference them with $getenv().  
Here are some examples:

> [@App path in Export target](https://community.mp3tag.de/t/app-path-in-export-target/16124):
>
> How can I get "Export file name" to reference a path relative to Mp3tag.exe? e.g. $filename($getenv(MP3TAGEXEPATH)..\myfile.txt,ANSI) -\> S:\TLIB importing! Curtains\mp3tag..\myfile.txt

---

_[View the full topic](https://community.mp3tag.de/t/tools-using-env-variable-in-path/66743)._
