Super cool!
JoyMonkey, that worked and you are my hero

This is the batch file I use with MAME beyond .84:
mame32 -listxml > gamelist.xml
xml2info < gamelist.xml > gamelist.lst
del gamelist.xml
and to open them with sortinfo.exe I used "import" not "open"
I tested it on 3 versions: 85, 95, and 97. All worked perfectly.
And for versions before .84 I use:
MAME32 -listinfo > gamelist.txt
and it works perfectly too, using "import" but not "open"
Life is good.
I appreciate being able to sort the ROMs before putting them on the cabinet, it seems more organized and saves disk space. Not to mention it is good for people who want to run MAME32 on their cabinet.
Also, in a test, MAME32 .97's gamelist.xml was converted to gamelist.lst by MAME .85's xml2info.exe.
Then the gamelist.lst was imported to sortinfo.exe sucessfully.
This is evidence that there is no need to match versions and that it can be done with MAME32.
Thank you!
Craig