I've got a folder full of TXT story files with the actual story title and author are on the second and third lines of the file. For example, the file Carl-APsalter.txt begins with: ====================== The Avalon Psalter by Lillian Stewart Carl What I want to do is to either: A: get a list of file names and headers in a format that I can then edit into rename commands using a textpad macro Carl-APsalter.txt ====================== The Avalon Psalter by Lillian Stewart Carl Note: I can get a list of the file names OR a list of the header information, but not both at the same time. A "FOR ... echo | head )doesn't work. Even better, though, would be some way to build and execute the following command for each file: rename Carl-APsalter.txt "Lillian Stewart Carl - The Avalon Psalter.txt" Any help appreciated. I only have to do this once but getting it to work is driving me nuts. Thanks in advance.