There is a windows command line trick which can list and help you export all files and folder list in any directory of windows but if any of your program input requires it in the form of XML or CSV format, Get Folder is a sweet utility which just does this job.
This application when pointed to any directory displays all folders and files which can be filtered and going on step ahead you can export them in TXT,HTML,CSV or XML file.
This application is a freeware and portable as well. Just carry it in your USB Drive. Download GetFolder