RL tutorial batchFiles

From BYOAC OLD Wiki
Revision as of 17:08, 12 August 2008 by Jeffleyda (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

All about batch files.
While ROMLister wasn't designed for this purpose, it has shown to be a useful tool for anything you need to do repetitively on a set of ROM names.
For example, a user wanted to create an .ini file for all of the vertical games on his cabinet. This ini file told MAME to display the video in a certain mode. The details are not important for this discussion, but what was needed was that the same .ini file was created for every vertical ROM on his machine.
1) Using ROMLister, the user was able to create a list of all the vertical games available. See tutorial. 2) Then from the working list window, select batch file for the output type. 3) In the batch file text popup window, he typed in "copy c:\vertical.ini %ROM%.ini" and saved this batch file into the ini folder in his MAME setup.
He then created a single .ini file called vertical.ini and placed it in the root folder of his C: drive. When the batch file was executed, it repeatedly copied c:\vertical.ini and saved the file as each ROM name in his ini folder, thus creating the same vertical setup configuration for every vertical game on his machine.