Anyone got any ideas? I'm recovering from a loss and I don't want to do it one by one again I did that first time around.
Thanks for any ideas!
Thanks for any ideas!
[USER=325063]Echo[/USER] off
FORFILES /c "discex.exe -c @file"
I added in batch processing support (as well as the ability to compile and run in Linux) to Fix94's gamecubeISOcompress v0.2 some time ago (it was the only shrinking program I could find the source to at the time).
Maybe if I can find the time in the future, I'll poke around the source code for a more up-to-date iso shrinker
FORFILES /m *.iso /c "cmd /c discex -c @file"
I'm not all that familiar with Windows' commands as I work mostly with the Linux terminal, however, I would figure that FORFILES is basically just a for loop for the windows terminal. So basically it iterates through each .iso and runs discex on the file for the current iteration.SCORE!!!
Code:FORFILES /m *.iso /c "cmd /c discex -c @file"
does what i need. why the hell does it need to call a cmd on top of a cmd?!?!?
It has to be done this way because the program itself does not have batch processing built into it, so instead you're running an algorithm in the terminal that runs the program multiple times. Often programs/commands will have the ability to pass in multiple files as arguments and to execute whatever it's supposed to do on all of them, but that appears not to be the case here. It's a bit simpler to write a program that works for a singular file as you can hard-code your program to look at one specific argument instead of adding in extra logic to look at the number of parameters passed after a flag denoting the start of filenames, etc.. It's not all that difficult to add batch processing, but I'm guessing the guys writing these programs are more worried about the program working rather than adding the gloss at the end, hence why most of this stuff is coded for the terminal rather than pretty, user-friendly GUIs.FORFILES is just that, scans each file and executes a command based on the supplied information.
/m makes it search for only certain file masks.
/c is the command...in this batch it executes another command prompt which then runs discex with the -c argument using the next filename in the directory. why it has to be like this is unknown to me but I'm glad I learned this. I think it may come in handy sometimes.
It has to be done this way because the program itself does not have batch processing built into it, so instead you're running an algorithm in the terminal that runs the program multiple times. Often programs/commands will have the ability to pass in multiple files as arguments and to execute whatever it's supposed to do on all of them, but that appears not to be the case here. It's a bit simpler to write a program that works for a singular file as you can hard-code your program to look at one specific argument instead of adding in extra logic to look at the number of parameters passed after a flag denoting the start of filenames, etc.. It's not all that difficult to add batch processing, but I'm guessing the guys writing these programs are more worried about the program working rather than adding the gloss at the end, hence why most of this stuff is coded for the terminal rather than pretty, user-friendly GUIs.
Alright, this thread inspired me to take a look again for any open source gamecube iso compression software. As before, the only one available is Fix94's GameCubeISOcompress, although this time I managed to find the source for v 0.3 . I brought in the changes that I made to v 0.2 that added unix support and batch processing, and this time I also made it so that disc 2 will be appropriately named and placed into the same folder as disc 1. If anyone's interested, I can walk them through my code changes, but I'm not going to upload the source as I didn't get permission from Fix94 to distribute derivative work of his code.
The main purpose for my code is adding in linux support (and I presume it would work for Mac, too) since all the other gamecube iso compression programs out there are Windows only. Adding in the batch support and properly placing/naming disc2 is just a little icing on the top.Awesome job
!
I'm already done with my project. The batch process worked great for my needs but I could see how your work would make it just a bit more easy.
I agree, I've always liked non-fancy apps, the person who wrote the application usually knows what they are doing when not worrying about a gui.
Here is my batch file to shrink it in case anyone else wants it Just put your isos, discex and its .dlls, as well as this bat file all in the same folder and run. working great here.
i don't think i have this saved anywhere i don't even remember this thread lolCan you please reupload the batch file?
i don't think i have this saved anywhere i don't even remember this thread lol
Something similar is built into modmii. Launch modmii classic, then enter S from the main menu and use the bulk game extractor
Edit: I'm not 100% sure I ever tested this with gamecube games but IIRC it uses the same cmd line tool from this thread so it should work
You may have missed my earlier postHahaha ok, that's funny. See, i have several gamecube iso, i want to shrink them in DiscEx like the GCIT do, but in gcit i have to do it one by one, is there anyway i can do it all in one time? Like wiibackupmanager or something.
Vash long time! I remember you from back in the day. Good to see you!i don't think i have this saved anywhere i don't even remember this thread lol