Convert Zip To — Chd

Not every ZIP contains a PlayStation 1 game ( .cue/.bin ). Here is how to handle other disk types inside a ZIP.

@echo off mkdir temp_extract for %%i in (*.zip) do ( echo Converting %%i to CHD... 7z x "%%i" -otemp_extract -y if exist temp_extract\*.cue ( chdman createcd -i temp_extract\*.cue -o "%%~ni.chd" ) else if exist temp_extract\*.iso ( chdman createcd -i temp_extract\*.iso -o "%%~ni.chd" ) rmdir /s /q temp_extract ) echo Done! Convert Zip To Chd

| Error Message | Why it Happens | Fix | | :--- | :--- | :--- | | chdman: cannot open input file | You forgot to extract the ZIP. | Extract the contents first. | | Missing tracks in CUE | The CUE sheet points to the wrong filename or the ZIP had missing files. | Open the .cue in Notepad. Fix the .bin filenames to match exactly. | | Unsupported compression | You fed a .7z or .rar file to chdman. | Convert the archive to ZIP, then extract, or extract using 7-Zip first. | | Input file is not a CD image | You tried to convert a .nes or .smc file inside a ZIP. | CHD is for CD/DVD/HDD games only. Use .chd for PS1, Saturn, Dreamcast, PS2, Xbox 360. | Not every ZIP contains a PlayStation 1 game (

chdman extractcd -i "game.chd" -o "game.cue" 7z x "%%i" -otemp_extract -y if exist temp_extract\*