You could create a button with the following MS-DOS command:
echo {filepath$} >> C:\Temp\FileList.txt
Select a file, click the button and the filename will be copied to a file called FileList.txt in the C:\Temp\ folder. Further clicks of the button will add to this text file.
Take a peek at this post which may help:
[url]Creating a log file]