What I'd like to achieve in the end is to generate a text file that lists all *.txt files in the current directory with the path appended to the beginning of the filenames, and some other string after the filenames.
C:\path\first.txt string C:\path\second.txt string C:\path\third.txt string
As of now all I can think of is to use
dir /b *.txt
and some sort of regex code to append the strings, but unsure how to. If it matters, the path and string at the end are the same for all lines.