Here was my dilema that lead to this.
I have a thumb drive that I wanted 300 of my favorite mame games on. I have the roms on the thumb drive, but with 3k + snapshots and marquees.
There is NO way that a slow USB device can search thru that many images using Mala or any other frontend. I needed just the snapshots and marquees that match the roms I needed.
Using 2 different sites for help, I came up with this method.
1> Open a cmd prompt. Navigate to your rom directory and type: dir /b > filelist.txt
This will create a text file with the names of the roms in that directory called "Filelist.txt"
Load this file into notepad and do a "Replace" ".zip replace with .png" Save the file
2> You will be creating a batch file that will create a new directory with images that match the names of your roms from filelist.txt
Open up notepad and copy and paste the following:
for /f "delims=" %%i in (filelist.txt) do echo D|xcopy "J:\Mame\Snap\%%i" "c:\temp\"
Edit "J:\mame\snap\" to the name where your snaps are located. I have the files being copied to "C:temp\" you can change that to where you want your images saved.
Save the file as "yourchoiceofname.bat"
3> When you run the batch file, the .bat file and filelist.txt must be in the same directory
When the batch is finished, it will have copied ONLY the snaps that match your rom names to the new directory.
Using this method you could do the same for the marquee, cabinet, titles and artwork directories.
Hope you guys find this usefull!!
Bloodwyn