Main > Software Forum

Want to use ListGen to create a batch file to move roms

(1/2) > >>

edge:
I am working on a dedicated trackball cabinet.  I am trying to use ListGen (thanks Budda!) to extract the rom names of the trackball games only -- and create a batch file that could move those roms from one directory to another.

When I run ListGen (with moviebatch, mamewah, etc as frontend variable), I get the proper list of trackball roms, but I cannot modify the output file.  Is there a way to manipulate the output format without modifying the source code?  I tried modifying the templates, but the readme said that those are obsolete.


filter.sql

--- Code: ---select * from gamedata where control= 'trackball';

--- End code ---

listgen.ini

--- Code: ---rompath ..\mame_roms\roms
mamepath ..\mame
frontend moviebatch
verbose 0
silent 0
audit_roms 0
use_clones 1
unique 0
us_version_priority 0
world_version_priority 0
strip_description 0
japan_version_priority -1
reuse_mame_data 0
output makemovies.bat
force_uppercase_romnames 0
skip_final_step 1
boundary_path .
boundary_file ssf.txt

--- End code ---

Thanks!

edge:
I hate to bump but...

NOP:
Can't exactly help you with ListGen, but I can point you to another utility that might be able to help:

http://forum.arcadecontrols.com/index.php?topic=55636.0

This uses MAME's xml file output that you can parse through and keep isolating games that you're interested in, then a final pass with a -r on the command line will dump out only the rom names.  You should be able to batch file that final output fairly easily.

as the author of the above util, I am also available for tech support. 

-jeff!

Buddabing:
I'm sorry I didn't see your post earlier.

You can change the text from within your filter.sql:


--- Code: ---.separator ' '
select '@call batch1',romname from gamedata where control='trackball';

--- End code ---

Then in batch1.bat you move the rom from folder to folder: (foo to bar in this case)


--- Code: ---move foo\%1.zip bar\%1.zip

--- End code ---

Please PM me if you have further questions.



edge:
Thanks, Budda and NOP.  I will try both out tonight.

Navigation

[0] Message Index

[#] Next page

Go to full version