Thank you so much guy038.
I use regex for find/replace frequently, but didn’t consider using it for this. I’m sometimes working with more than 1 million lines of file lists, and macros usually worked well, but regex could produce quicker output results.
Another time I’d use macros, which I don’t think this regex method will work on, is copying the file’s name into the text.
For example, if the text is:
2016900000011.txt.201610190800
…and the file containing the text is test.txt. Using Edit -> ‘Copy to Clipboard -> Current Filename to Clipboard’ in the macro, the output would be:
test.txt\2016900000011.txt.201610190800
I guess I can perhaps try accomplishing this when creating the directory lists from a command line.
Thanks again for your detailed feedback!