Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Solution - Create a dir with snaps that match your roms!  (Read 1779 times)

0 Members and 1 Guest are viewing this topic.

Bloodwyn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:October 17, 2020, 09:51:10 am
Solution - Create a dir with snaps that match your roms!
« on: December 28, 2008, 12:38:38 pm »
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

« Last Edit: December 28, 2008, 02:17:46 pm by Bloodwyn »

RetroBorg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 818
  • Last login:July 06, 2022, 09:22:13 am
  • Your arcade games will be assimilated!
Re: Solution - Create a dir with snaps that match your roms!
« Reply #1 on: May 17, 2016, 10:16:19 am »
Well this came in handy for me 7.5 years after you wrote it.

Cheers.

 :applaud:

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 983
  • Last login:March 21, 2025, 06:36:05 am
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: Solution - Create a dir with snaps that match your roms!
« Reply #2 on: May 24, 2016, 12:32:20 pm »
Good necro... :notworthy:

Bloodwyn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:October 17, 2020, 09:51:10 am
Re: Solution - Create a dir with snaps that match your roms!
« Reply #3 on: May 25, 2016, 11:49:15 pm »
Very glad this came in handy for you. I actually used this again about 2 months ago when I moved from Mala to Attract mode and revamped my arcade cabinet.
Crazy how stuff like this can save a ton of time!.

Bloodwyn