2012-11-02, 01:52
Alright so I've also changed the discnum:0 switch for the MakeMKV CLI to be a variable that is discovered by the %volid% variable. This would solve an issue where if someone had two drives and they didn't know if it was disc:0 or disc:1; it's not really needed but it would just be one less variable to find. I only tested the :GetDiscNum part with one disc, so maybe try it out with one of your own.
Here's the code:
I tested this by converting a smaller video file to a DVD ISO then mounting it to a virtual drive and specifying that drive for the drive letter. Everything works fine for me, would you mind giving it a test?
Also I had to modify my update code a little bit but it works as far as I've tested. Also I changed the ScriptPath variable to be dynamically hardcoded, as long as the exe file is with the other scripts it won't need to be set. This is referenced in batch files by %~dp0
Full Code
Feel free to take any and all of it, if anything I now have exactly what I was looking for. Thanks again.
Here's the code:
Code:
:GetDiscNum
::Get disc number based on name of %volid%
"%IntDir%\makemkvcon64.exe" -r --cache=1 info disc:9999 | find /i "%volid%" > "%userprofile%\ARtemp"
type "%userprofile%\ARtemp"
set /p discNum=<"%userprofile%\ARtemp"
del "%userprofile%\ARtemp"
set discNum=%discNum:~4,1%
cd /d "%IntDir%"
makemkvcon64.exe --minlength=%RipMinSeconds% mkv disc:%discNum% all "%RipDir%%volid%"
I tested this by converting a smaller video file to a DVD ISO then mounting it to a virtual drive and specifying that drive for the drive letter. Everything works fine for me, would you mind giving it a test?
Also I had to modify my update code a little bit but it works as far as I've tested. Also I changed the ScriptPath variable to be dynamically hardcoded, as long as the exe file is with the other scripts it won't need to be set. This is referenced in batch files by %~dp0
Full Code
Feel free to take any and all of it, if anything I now have exactly what I was looking for. Thanks again.