Create .ISO From .CHD Files

Windows 
 CHD2ISO.bat 
 for %%i in (*.chd) do (
chdman extractcd -i "%%i" -o "%%~ni.cue" -ob "%%~ni.iso"
del "%%~ni.cue"
) >> log 
   
 Linux 
 convertFromChdToIso.sh 
 #!/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
 
  