2012-03-16, 03:03
Here is my file, only slightly edited from the original. It is a 64-bit OS. This particular DVD is one that I believe was created from a movie file, and the creation proggy must have allowed spaces in the filename. The DVD name is Grown Ups, I got a folder "Grown". If spaces are an unsupported name convention, so be it, I just figured I would post it in case other people had similar problems or it was an easy fix. Let me know if you'd like me to try any changes.
Code:
@Echo offSetlocal enableextensions
::*********************************************************************************************
::*** AutoRipDVD is brought to you by Spinalcracker
::*********************************************************************************************
::
::*********************************************************************************************
::*** Change the following variables to match your setup
::*********************************************************************************************
::
::*** DriveLetter=The drive letter of your DVD or Blu-Ray drive ie. D: or G: etc
::
::------------------------------
Set DriveLetter=D:
::------------------------------
::
::*** RipDir=Where you want your DVD ripped to ie. your xbmc movie folder *BE SURE TO INCLUDE TRAILING \
::
::------------------------------
Set RipDir=Z:\Shared Videos\Movies\
::------------------------------
::
::*** IntDir=Where you installed MakeMKV to
::
::----------------------------------------
Set IntDir=C:\Program Files (x86)\MakeMKV
::----------------------------------------
::
::*** ScriptPath=Where the files for this script are located with trailing "\" ie. Where AutoRipComplete.vbs & Beep.vbs are located *BE SURE TO INCLUDE TRAILING \
::
::------------------------------------
Set ScriptPath=C:\Program Files (x86)\AutoRipDVD\
::------------------------------------
::
::*** RipMinSeconds=Minimum time in seconds that should be ripped off disk to avoid getting previews etc. Default is 3600 seconds or 1 hour
::
::---------------------
Set RipMinSeconds=3600
::---------------------
::
::*********************************************************************************************
::*********************************************************************************************
::******* DO NOT EDIT ANYTHING BELOW THIS!!!!!!************************************************
::*********************************************************************************************
::*********************************************************************************************
::For /f %%# In ('Mountvol^|Findstr [d-z]:\\') Do (
:: Fsutil fsinfo drivetype %%#|Find "CD-ROM">Nul&&(Set "CDROM=%%~d#"))
::If Not Defined CDROM call :NoDrive
for /f "tokens=6" %%t in ('vol %DriveLetter%') do @set volid=%%t
echo: %volid%
set str=%volid%
::echo.%str%
set str=%str:_= %
::echo.%str%
set volid=%str%
If "%volid%"=="_= " call :NoDrive
Echo:Ripping %volid% now...
mkdir "%RipDir%%volid%"
cd /d "%ScriptPath%"
OSDAutoRip.hta
cd /d "%IntDir%"
makemkvcon64.exe --minlength=%RipMinSeconds% mkv disc:0 all "%RipDir%%volid%"
SET _tmpPath="%RipDir%%volid%"
cd /d %_tmpPath%
for %%i in ("title*.mkv") do (set fname=%%i) & call :rename
cd /d "%ScriptPath%"
AutoRipComplete.vbs
cscript Beep.vbs
goto:eof
:NoDrive
cd /d "%ScriptPath%"
cscript Beep.vbs
NoDiskDrive.hta
AutoRipComplete.vbs
exit
:rename
::Cuts off 1st 5 characters of fname, then appends prefix
ren %fname% "%volid%"_%fname:~5%