2013-02-23, 01:22
(2013-02-22, 21:49)kaffekask Wrote: The problem is with this solution that if XBMC have used another (bigger) bdmv-file the script doesn't work as you noticed.
Edit:
And this should be a better solution.
Code:set pth=%1
for /f "tokens=*" %%p in ("%pth%") do set pth=%%~dpp
set pth=%pth:~0,-1%
for /f "tokens=*" %%p in ("%pth%") do set pth="%%~dpp"
XBMC should not be sending any BDMV file other than index.bdmv or movieobject.bdmv. Those are the only 2 bdmv files in the BDMV directory of the disc, any other files are within other folders for example 'sound.bdmv' would be in the AUXDATA folder, which would require a different batch file again.