EMULAB Forum

clrmamepro [English] => clrmame Discussion => Topic started by: jfromeo on 13 May 2010, 09:39

Title: Rename several roms in a folder to match names on a *.dat
Post by: jfromeo on 13 May 2010, 09:39
Hello there.

I guess this operation must be easy, but I don't know how to do it properly.

I have, let's say, 3 roms in a folder compressed in zip and its correspondant dat (with Dir2Dat function), called:

a.zip
b.zip
c.zip

On the other hand, I have a dat, to which I'd like to match the roms, which says that:

a.zip should be 3.zip
b.zip should be 1.zip
c.zip should be 2.zip

I can only accomplish it using the rebuilder option, pointing to the roms folder, and using only the second dat, but that implies having to scan the roms in the zip, checking the hashes, renaming and compressing them again. I'd like to ask if there is a function to somehow "compare" the dats and creating a renaming *.bat or something similar.

In my example, there are only 3 roms, but in the reality they are +5000 (that's why the rebuilding method would last several days, I left it for 1 hour and it got rebuilt ~90 roms).

Thanks as always.
Title: Re: Rename several roms in a folder to match names on a *.dat
Post by: Roman on 13 May 2010, 13:21
profiler renamewizard lets you compare two dats and tells you what was renamed to what. you can export this list or can apply the changes on a third dat.
Title: Re: Rename several roms in a folder to match names on a *.dat
Post by: jfromeo on 13 May 2010, 14:18
Great ;) Thanks for the support.