shadowfire36 Posted May 23 Share Posted May 23 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 ----------------------------------------------------------------------------------------------------- Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted May 23 Share Posted May 23 8 hours ago, shadowfire36 said: it doesnt seem to convert the other part Change your (2nd) variable from %%i to %%f (I did not look at any other parameters to verify they're correct) Quote Link to comment Share on other sites More sharing options...
geldi86 Posted June 8 Share Posted June 8 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 ) Quote Link to comment Share on other sites More sharing options...
geldi86 Posted June 8 Share Posted June 8 Actually, think I found something by fluke and could be useful for others. The latest version of the BatGUI normally used for Retrobat looks to have batch functionality with a GUI https://wiki.retrobat.org/advanced-features/batgui Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted June 8 Share Posted June 8 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.