you use -listxml to get an xml file of mame's info.
Wow, it took a few minutes for my dual 1400 to output that. That doesn't appear to be the information I'm looking for.
All I need is the Name of the game and its associated zip file. I found a file called gamelist.txt at mame.net that I can parse to get the information I need,. but I'm still looking to find a more automated way of keeping it updated.
Don't worry when I get my LCD screen switching marquees to the currently playing game I'll share it with all you guys. The other thing this could do would also be to switch to an instruction screen for the current game or a screenshot, or tile all of those.