In Windows, open a command prompt, cd to the MP3 directory, and use this command:
dir /A:-D /B > file_list.txt
This will list only the file names in the directory, excluding subdirectories, and save them in file_list.txt.
I haven't used tag & rename; maybe it would be an easier solution if you're just trying to get data from the tags.