# Text file-to-Tag w. %\_filename% as Safety Tag

**URL:** <https://community.mp3tag.de/t/text-file-to-tag-w-filename-as-safety-tag/57358>\
**Category:** Support\
**Created:** [May 20, 2022, 7:57pm UTC](https://community.mp3tag.de/t/text-file-to-tag-w-filename-as-safety-tag/57358 "2022-05-20T19:57:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Post date:** [May 20, 2022, 7:57pm UTC](https://community.mp3tag.de/t/text-file-to-tag-w-filename-as-safety-tag/57358/1 "2022-05-20T19:57:03Z")

</div>

I frequently use %\_filename% as the first field in a Text file to Tag conversion, to make sure the entries in the text file align with the target mp3's. This feature only seems to work with a single folder (i.e., fails when I have targets in multiple folders in the text file).  
Is this a flaw or am I misusing the feature?

note: I can copy-paste the %\_filename% from a multi-destination text file into Windows File Explorer and it finds / plays the target mp3's fine ... it just won't update the tags. It's not a spelling error.

Scenario ... I download many (dozen) subscriptions from UCSD.edu which are in .mp4 format and I need to convert these to .mp3 for my ancient IPOD ... my converter (ffmpeg batch av converter) does not align all the tags correctly (and I do some customization).

Export script (partial) ...  
UTF-8)$loop(%\_filename%)%\_filename%.mp3|%album%|^~|%track%|^~|  
Import text string (partial) ...  
%\_filename\_ext%|%album%|^~|%track%|^~

---

<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:** [May 20, 2022, 8:00pm UTC](https://community.mp3tag.de/t/text-file-to-tag-w-filename-as-safety-tag/57358/2 "2022-05-20T20:00:41Z")

</div>

> [@rko31415](#):
>
> This feature only seems to work with a single folder  
> Is this a flaw or am I misusing the feature?

It works the current working directory.  
If you want to address files in several folders you have to %\_path% instead of %\_filename% (and, of course, the corresponding data with a full path)

---

<div class="post-metadata">

**Author:** ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Post date:** [May 20, 2022, 8:08pm UTC](https://community.mp3tag.de/t/text-file-to-tag-w-filename-as-safety-tag/57358/3 "2022-05-20T20:08:28Z")

</div>

Thanks. I'm unavailable for a few days, so I'll test this on Monday and report back.

---

<div class="post-metadata">

**Author:** ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Post date:** [May 25, 2022, 11:38am UTC](https://community.mp3tag.de/t/text-file-to-tag-w-filename-as-safety-tag/57358/4 "2022-05-25T11:38:46Z")

</div>

Thanks. That worked.  
Given my scenario I needed to use:  
%\_folderpath%%\_filename%.mp3

---

<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:29pm UTC](https://community.mp3tag.de/t/text-file-to-tag-w-filename-as-safety-tag/57358/5 "2026-02-09T12:29:46Z")

</div>


