MAMEWorld Central >> News
View all threads Index   Flat Mode Flat  

Llaffer
MAME Fan
Reged: 05/04/11
Posts: 171
Send PM
Re: MAME 0.145u1
02/22/12 12:32 AM


> > Can someone please post detailed instructions on how to update/convert an entire
> > current CHD directory which is version 4 to another CHD directory which is version
> 5
> > and also how to verify that the conversion has worked - ie:
> >
> > g:\CHD_V4
> >
> > to
> >
> > g:\CHD_V5
>
>
> for %i in (g:\CHD_V4\*.chd) do chdman copy -i %i -o g:\CHD_V5\%~nxi

I turned that into a .bat file and added some tweaks to it so it runs in low priority, so I can run other programs on my system without it lagging the entire system out.

Here is the content of chd.bat:
for %%i in (g:\CHD_v4\*.chd) do %comspec% /c start /low /wait chdman copy -i %%i -o g:\CHD_v5\%%~nxi

This will kick off a new cmd.exe process for each call to chdman.exe that will close when completed, then a new window will open.

/wait added to it will prevent it from trying to execute 438 simultaneous instances of chdman. It will still run one at a time.

If you don't want new windows to pop in and out, and instead want it all to run in the window window, you can add a /b in the list of arguments before chdman, but then you lose the ability to CTRL-C terminate.

In case anyone was wondering how long this process takes and what disk space is saved, I started the process last night to see for myself. Here are my findings:

Size of CHD_v4 directory: 240,243,510,229 bytes
Size of CHD_v5 directory: 230,936,465,918 bytes (a 3.87% reduction in size)

Process started: 21:18 Monday
Process ended: 16:11 Tuesday
Duration: 18 hours, 53 minutes

Of course, your mileage may vary depending on your system's specs vs. mine.

I've done all the work in separate directories from my MAME library, so I wouldn't mess anything up. So I don't know how CLRMamePro will handle the v5 CHD files yet. I'll probably will run a similar process again when .146 is released and then merge them into my library at that time.







Entire thread
Subject Posted by Posted on
* MAME 0.145u1 redk9258 02/19/12 06:23 PM
. * Re: MAME 0.145u1 kevenz  02/28/12 05:23 AM
. * Re: MAME 0.145u1 B2K24  02/28/12 06:29 AM
. * Re: MAME 0.145u1 CiroConsentino  02/22/12 04:20 PM
. * Re: MAME 0.145u1 etabeta  02/22/12 07:31 PM
. * Re: MAME 0.145u1 CiroConsentino  02/22/12 08:49 PM
. * Re: MAME 0.145u1 Doosh  02/20/12 09:20 PM
. * Re: MAME 0.145u1 AaronGiles  02/20/12 09:29 PM
. * Re: MAME 0.145u1 Llaffer  02/22/12 12:32 AM
. * Re: MAME 0.145u1 B2K24  02/22/12 02:23 AM
. * Re: MAME 0.145u1 Anonymous  02/20/12 10:48 PM
. * Re: MAME 0.145u1 etabeta  02/20/12 09:24 PM
. * Are the CHD changes safe or is it recommended to wait? Pr3tty F1y  02/20/12 07:51 PM
. * Re: Are the CHD changes safe or is it recommended to wait? etabeta  02/20/12 07:59 PM
. * Re: Are the CHD changes safe or is it recommended to wait? krick  02/21/12 04:53 AM
. * Re: Are the CHD changes safe or is it recommended to wait? etabeta  02/21/12 12:00 PM
. * Re: Are the CHD changes safe or is it recommended to wait? R. Belmont  02/21/12 09:57 PM
. * current chdman state... etabeta  02/22/12 10:57 AM
. * Re: current chdman state... R. Belmont  02/22/12 09:41 PM
. * Re: current chdman state... SmitdoggAdministrator  02/22/12 10:11 PM
. * Re: current chdman state... B2K24  02/22/12 10:35 PM
. * Re: current chdman state... SmitdoggAdministrator  02/22/12 10:37 PM
. * Re: current chdman state... Naoki  02/23/12 12:43 AM
. * Re: current chdman state... SmitdoggAdministrator  02/23/12 12:45 AM
. * Re: current chdman state... Naoki  02/23/12 02:10 AM
. * Re: Are the CHD changes safe or is it recommended to wait? BIOS-D  02/21/12 05:25 AM
. * Re: Are the CHD changes safe or is it recommended to wait? R. Belmont  02/21/12 11:03 PM
. * Re: Are the CHD changes safe or is it recommended to wait? Pr3tty F1y  02/21/12 11:56 PM
. * Re: Are the CHD changes safe or is it recommended to wait? CiroConsentino  02/22/12 01:18 AM
. * Re: MAME 0.145u1 CiroConsentino  02/20/12 01:35 PM
. * Re: MAME 0.145u1 krick  02/20/12 05:36 PM
. * Re: MAME 0.145u1 Sune  02/20/12 06:08 PM
. * Re: MAME 0.145u1 TafoidAdministrator  02/20/12 05:43 PM
. * Re: MAME 0.145u1 etabeta  02/20/12 01:39 PM
. * Re: MAME 0.145u1 CiroConsentino  02/20/12 06:01 PM
. * chd update trouble Sune  02/20/12 04:05 AM
. * Re: chd update trouble xibic  02/20/12 02:00 PM
. * Re: chd update trouble Sune  02/20/12 02:43 PM
. * Re: chd update trouble etabeta  02/20/12 02:53 PM
. * Re: chd update trouble Sune  02/20/12 03:31 PM
. * Re: chd update trouble redk9258  02/20/12 04:46 AM
. * Re: MAME 0.145u1 CiroConsentino  02/20/12 01:05 AM
. * CHDMAN Naoki  02/19/12 10:20 PM
. * CHDs inside ZIPs is missing... MASH  02/19/12 10:41 PM
. * Re: CHDs inside ZIPs is missing... redk9258  02/19/12 11:22 PM
. * Re: Test it! MASH  02/19/12 11:32 PM
. * Re: Test it! Naoki  02/20/12 12:32 AM
. * MAME_0.145u1b_32-bit... redk9258  02/19/12 08:36 PM
. * Re: MAME_0.145u1b_32-bit... KingTut  02/19/12 08:58 PM
. * MAME_0.145u1b_64-bit... redk9258  02/19/12 08:27 PM
. * Re: MAME_0.145u1b_64-bit... Dullaron  02/21/12 03:50 AM
. * Re: MAME_0.145u1b_64-bit... redk9258  02/21/12 04:06 AM
. * Re: MAME_0.145u1b_64-bit... CiroConsentino  02/20/12 12:31 PM
. * Thank You (nt) Trebor  02/20/12 05:14 AM
. * Re: MAME 0.145u1 belegdol  02/19/12 08:13 PM
. * Re: MAME 0.145u1 Cyberzinho Punk  02/19/12 08:16 PM
. * Re: MAME 0.145u1 R. Belmont  02/19/12 10:51 PM
. * Re: MAME 0.145u1 belegdol  02/19/12 06:43 PM
. * Re: MAME 0.145u1 redk9258  02/19/12 07:06 PM
. * Re: MAME 0.145u1 Kale  02/19/12 07:30 PM
. * Re: MAME 0.145u1 redk9258  02/19/12 07:38 PM
. * Re: MAME 0.145u1 Kale  02/19/12 07:44 PM
. * Re: MAME 0.145u1 StevieWunderful  02/19/12 11:51 PM

Extra information Permissions
Moderator:  John IV, Tafoid 
2 registered and 41 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 7188


Quantcast