# Update absolute path used in multiple Actions

**URL:** https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429
**Category:** Support
**Created:** [January 5, 2020, 8:03am UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429 "2020-01-05T08:03:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Buzko](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8797f3/32.png) [@Buzko](https://community.mp3tag.de/u/Buzko)
#### Post date: [January 5, 2020, 8:03am UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429/1 "2020-01-05T08:03:38Z")

</div>

Hi all,

I've recently moved laptops and the absolute path for my media has changed. I have a number of renaming Actions (like \_FILENAME \> c:\Users\*\*\*\Music\0 - Sorted%albumartist%%year% - %album%$num(%track%,2) - %artist% - %title%) that use the old path.

Is there a quick way to update them to the new path (without editing them all)? Or is there a better way to set them up with a variable that can be set once and used in multiple Actions?

Thanks,

Buzko

---

<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: [January 5, 2020, 12:23pm UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429/2 "2020-01-05T12:23:45Z")

</div>

There are no global variables.  
You have edit each occurence of the path.

---

<div class="post-metadata">

### Author: ![mista\_j](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mista_j/32/15808_2.png) [@mista\_j](https://community.mp3tag.de/u/mista_j)
#### Post date: [June 11, 2025, 5:50pm UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429/3 "2025-06-11T17:50:22Z")

</div>

Dang I just came here to ask this @Buzko

I'm sharing a configuration with a friend & wanted a way to update the filepaths easily.

The only thing I came up with was creating an action called Global Variables.

1st I changed all my absolute paths to have variables %DATABASE% & %ARCHIVE% are a couple examples.

So now the paths are based on whataver value is in those two Variables (tags)

The Global Values Action can be configured to set the value of DATABASE & ARCHIVE which automatically sets or changes the path.

The downside here is you'll need to run this Global Variables action before you can do any actions where a path is needed / involved

The good news however is you'd have the ability to open one action. Change all the "Global Variables" & those changes would have effect throughout all your actions.

Just be sure to add a remove tag action to your action groups to rid your files of unwanted tags in the end.

In my case I think this is the easiest way to be able to share a configuration with another user & still be able to utilize actions that import & export files from various paths.

For you if you update or move your files often this could be useful.

---

<div class="post-metadata">

### Author: ![Casual\_Tea](https://community.mp3tag.de/user_avatar/community.mp3tag.de/casual_tea/32/18886_2.png) [@Casual\_Tea](https://community.mp3tag.de/u/Casual_Tea)
#### Post date: [June 12, 2025, 10:26am UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429/4 "2025-06-12T10:26:49Z")

</div>

I see a few potential downsides to this approach.

1. You perform changes on files to add these "global tags", altering the modification date
2. This means that saving changes is slower even when the actual content is not changed
3. During the next backup even files that are unchanged will need to be copied due to the changed modification date
4. It complicates the overall workflow as you always have to ensure to add/remove these "global tags"

I'd personally use something like "[Find in Files](https://npp-user-manual.org/docs/searching/)" in Notepad++.  
You select your actions folder (`C:\Users\<USER>\AppData\Roaming\Mp3tag\data\actions`), search for the path in all your action files and can replace it with something else in a single step.

That would look something like this:

 ![grafik](https://community.mp3tag.de/uploads/default/original/3X/8/c/8c5c4c775e4eaf9e7c3c40a951343ed74d453427.png)

However make **SURE** to backup your actions folder before doing this and also **triple-check** that the path you are replacing is valid as directly editing action files is _inherently risky_.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [June 12, 2025, 11:00am UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429/5 "2025-06-12T11:00:41Z")

</div>

Another rough idea would be to use a environment variable from your OS.  
This way you can set it once with something like  
`SET MyMusicPath=C:\Users\ABC\Music\Test`  
or  
`SETX MyMusicPath C:\Users\ABC\Music\Test`  
and read it from Mp3tag with:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/9/6/9624430f4357693517a166d99fb288273eeec138.png)  
with something like  
`$getenv(MyMusicPath)`

 ![image](https://community.mp3tag.de/uploads/default/original/3X/4/2/42e441131e7cf5c3d4a024442cb3c733af2e5906.png)

Documentation about SETX:

> **[setx](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/setx)**
>
> Reference article for the setx command, which creates or modifies environment variables in the user or system environment, without requiring programming or scripting.

---

<div class="post-metadata">

### Author: ![mista\_j](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mista_j/32/15808_2.png) [@mista\_j](https://community.mp3tag.de/u/mista_j)
#### Post date: [June 12, 2025, 3:35pm UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429/6 "2025-06-12T15:35:15Z")

</div>

> [@Casual\_Tea](#):
>
> I'd personally use something like "[Find in Files](https://npp-user-manual.org/docs/searching/)" in Notepad++.

I like this idea better than mine I use this from time to time. I'll have to teach my less savvy counterpart how to preform this change on their end. If it fails I'll just send them my configuration or have them re-download it. It's not terribly complicated a simple find & replace they'll just need to have my path(s) so they know what to replace.

If the notepad++ option fails for whatever reason we'll give this a shot as well:

> [@LyricsLover](#):
>
> use a environment variable from your OS.

Thanks Guys (Or Gals...people...non-bots..idk its 2025)

Thank You

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:28pm UTC](https://community.mp3tag.de/t/update-absolute-path-used-in-multiple-actions/47429/7 "2026-02-09T12:28:23Z")

</div>


