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: Deleting .zipped files based on XML updates? (Hyperspin)  (Read 862 times)

0 Members and 1 Guest are viewing this topic.

tommytutone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:August 01, 2014, 07:14:12 am
Deleting .zipped files based on XML updates? (Hyperspin)
« on: July 20, 2014, 07:36:01 pm »
I, like I'm sure many of you, have deleted several fruit machines and games that cannot be played on my cabinet that I am close to finishing up.  To get rid of these games from appearing in Hyperspin, I am updating the mame.xml file that lists the games and deleting the records of those unplayable and unwanted from there.

What I would like to do from there, however, is find an automated way to reconcile the .z7 ROMs with the .xml file, deleting all of the ones I do not want.  My hard drive space is tight and as such, I'm using an external hard drive to host the ROMs (yes, I know I can install a new hard drive, but would rather not if this will work) and would hopefully clear up enough space to move everything over to the smaller internal hard drive.

Assuming any of what I wrote makes sense to anyone else, is there an automated solution to cleaning up the junk, so to speak?

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: Deleting .zipped files based on XML updates? (Hyperspin)
« Reply #1 on: July 20, 2014, 10:35:08 pm »
If you have a mac, you could create an AppleScript to do this. Read and store both XML variables as hashes. If the rom zip does not exist in the revised XML, remove the file with corresponding name.