Jump to content
LaunchBox Community Forums

7z to chd with chdman


shadowfire36

Recommended Posts

I have been trying to write a .bat to convert .7z files to .CHD..

it sort of works i can get the zip files to drop the .7z files into .ISO's , but thats it.. it doesnt seem to convert the other part of the .bat  which is to  change them to a .CHD

 

can anyone take a look and see what im doing wrong in this ??

-------------------------------------------------------------------------------------------------

@echo off
setlocal enabledelayedexpansion

for %%i in (*.zip *.7z *.rar) do (
    "C:\Program Files\7-Zip\7z.exe" x "%%i"
    if errorlevel 1 goto fail
    del "%%i"
)

for %%f in (*.cue *.gdi *.iso) do (
    chdman createcd -f "%%i" -o "%%~nf.chd"
    if errorlevel 1 goto fail
    del "%%f"
    del *.bin
    del *.cue
)

echo Done!
goto :end

:fail
echo Error! Stopped
:end

 

-----------------------------------------------------------------------------------------------------
 

 

Link to comment
Share on other sites

  • 3 weeks later...

Its still not working for me with the change - would you mind confirming what it is please as it is super helpful!

Quote

for %%f in (*.cue *.gdi *.iso) do (
    chdman createcd -f "%%f" -o "%%~nf.chd"
    if errorlevel 1 goto fail
    del "%%f"
    del *.bin
    del *.cue
)

 

Link to comment
Share on other sites

11 hours ago, geldi86 said:

Its still not working for me with the change - would you mind confirming what it is please as it is super helpful!

A closer look at the command line for chdman. the -f should be a -i ("i" for 'input').  My guess is the OP transposed the 'f' and 'i' on that line.  

 chdman createcd -i "%%f" -o "%%~nf.chd"

 

Still not tested though as I don't have anything to convert anymore.  I used this plugin directly from inside LaunchBox, and everything is converted.

 

 

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...