# Create .ISO From .CHD Files

## Windows

[CHD2ISO.bat](https://wikipedia.mutschlerhome.com/attachments/219)

```bash
for %%i in (*.chd) do (
chdman extractcd -i "%%i" -o "%%~ni.cue" -ob "%%~ni.iso"
del "%%~ni.cue"
) >> log
```

## Linux

[convertFromChdToIso.sh](https://wikipedia.mutschlerhome.com/attachments/223)

```
#!/bin/bash

# Grab .chd file
for f in ./**/*.chd
do
	name=${f%.chd} # Remove '.chd' from file name
	chdman extractcd -i "$name.chd" -o "$name.iso" --force
done

```