Folder Name to Album & Artist Tag via Text File Import

Im sorry if this has been brought up before but I didn't quite see what I was looking for.

I am working on tagging tons of different setlists that are in separate folders for each concert by importing a text file that lists all the songs. This has been super handy but I still need to add the Artist and Album tags. The Artist stays the same but the Album tag changes to the folder name.

Is there a way to have the import file, import the name of the Artist and it take the folder name the files are currently in and add that to the Album tag, plus all the track titles?

So for example, I have a text file with all the track titles but also add in the Artist and current folder name as the Album.

Artist=JamBandName
Album=%CurrentFolderNameInPath%
Song Title
Song Title
Song Title
Song Title
Song Title
Song Title

Thats just an idea of what I was looking for but it would really help a few steps in the process if there's something similar I can do. Thanks in advance.

If you want to import data from text files then look at the text file as some kind of table that has 1 line per file.

So there is no way to group things together like have a header that contains only the data for ARTIST and ALBUM.
This data would have to be multiplied so that it can be round in each line.

Also, there is no import function to make MP3tag stop after a certain piece of data and then import data from somewhere else like the file system.

What you could do:
Create text files that only contain the data for TITLE for each file and then import this if the sequence and number of lines match that of the files.

To get the data from the folder name, try Converter>Filename-Tag
Mask: %album%\%dummy%

Thanks for the reply. I already use a file to import all the track titles which I edit and save them and import for each folder. I just want to see if there was a way to combine this function but adding in Artist and directory name.
I can use the Tag to Tag option. But is there a way to use two fields in the same option?
So have something like this?
Field: Artist , Album
pattern: ArtistName %_directory%

Usually, you write an action group with 2 actions if you want to manipulate 2 fields in 1 go.

Everything else with e.g. an action of the type "Guess value" is more difficult to maintain and yields not a lot of benefits.

I see , the action group looks like it would be a good solution for me but it doesnt seem to work very well or not at all.
Tried the "Guess Value"
Album and %album%
%_directory%
Seemed to process the request but no fields were written.
Same goes for Artist. I also tried the importing the text file function for titles but instead of each track getting the proper title per line in the text file, it put every title in every track.

UPDATE:
I figured it out!! Just needed to select "format value". But I am still trying to see if I can import the tracklist to the titles correctly now.

Been looking around and saw a similar thread to this issue, but is there a way to have titles imported through a text file that takes each line per track, similar to the Text-file to Tag function?

A screendump would usually show so much more.
I think that you mixed source (which is probably _DRIECTORY) and target string, that string that defines in which fields the data from the source should be used.

The Converter> Text file-Tag is the only function to assign lines from the text file to selected files.
The action

works on a single field with the contents of the whole text file.