Unreal...I'll tell you what!!
Very easy...I have a snipet thats really close to your request, bout some more details as far as the final txt-? file layout.
something like this one file or maybe two??
path to folder1
path to folder2