Jump to content
LaunchBox Community Forums

MAME CHDMAN: Single batch file with Menu to run multiple chdman operations


EASTWOOD2002

Recommended Posts

I decided to create a batch file to simplify the use of CHDMAN. The menu has the following options and as long as you have this batch file and chdman.exe from at least MAME 0.262 together in the same directory where you want to convert your CD or DVD images, then this should work OK.

1 - Compress CD to CHD           (BIN+CUE and/or ISO)
2 - Compress GDI to CHD         (GDI+BIN+RAW)
3 - Compress DVD to CHD        (ISO)


4 - Extract CHD to CD BIN+CUE    (e.g. PS1, CD32, NeoGeo CD etc...)
5 - Extract CHD to GDI                    (e.g. Dreamcast)
6 - Extract CHD to CD ISO             (e.g. PS2*)
7 - Extract CHD to DVD ISO          (e.g. PSP, PS2*)


*The majority of PS2 games are DVD based, a few games are CD based

8 - Convert CD CHD to DVD CHD    (if an old CD CHD should be a DVD CHD)

Notes:

  • I'm not a batch script expert so there are probably many expert ways to script this better...but I have tested this and it works for me :) 
  • I've included a tally on the Input vs. Output files to help you decide whether to delete Input files after running a command
  • Re the delete options - If in any doubt - don't delete anything - exit the program and check your files manually (I cannot take responsibility for any lost files) 
  • This is a Windows Batch File (so obviously not for MAC or Linux)

Anyway - feel free to use or improve - hope someone finds it useful :) 
 

CHDMAN Compress & Extract Menu.bat

  • Thanks 1
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

A slight update to this if you ever redo it, include an option specifically for PPSSPP as it recommends you use CreateDvD but with the option to set the hunk size to 2048.

So basically just add an option with "-h 2048" added to CreateDvD for PPSSPP so it doesn't spit out an error every time it boots a game. Glad to see PPSSPP finally supports CHD but it is going through some growing pains from it.

Link to comment
Share on other sites

  • 4 months later...

Thanks @Fugus / @mundodisco 

I didn't know you could use A-Z for menu options in the BAT - so that's really useful as I may expand on what the bat can do. Funnily enough though - I'd converted some PSP cd to dvd iso's using the original option and they seem to be OK without the 2048 switch.

Edited by EASTWOOD2002
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...