This is the tool that is my task runner for MAME. It's a form with a button for each task :)
- Your mame folder is here: c:\mame
You have to build from source ("Rom Info" is the project name). This was authored in the free Visual Studio 2015 community edition:
https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
Then run the .exe. Click the first button to produce the XML and when it's done click the second to produce the roms.csv.
This supports a windows MAME client: