2017-02-21, 20:15
(2016-11-20, 11:48)Lucas Rey Wrote:Quote:Although PDVD opens via Kodi script(s), it will not close automatically upon title completion. I mapped alt + 4 to my remote. This kills it and returns you to Kodi still in focus and in fullscreen as you left it.Is there any other way to kill powerdvd after pressing stop on remote?
I tried to add to PlayISO.bat the following command: taskkill /f /im PowerDVD.exe
So now the script looks like:
But is doesn't work. It just stops to unmount BD.Code:"C:\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\PowerDVD16\PowerDVD.exe" E:
"C:\VirtualCloneDrive\VCDMount.exe" /d=0 /u
taskkill /f /im PowerDVD.exe
exit
Hi to you Lucas. Here's how I solved this problem. Enjoy :-)
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO startpdvd) ELSE (goto retry)
:retry
timeout 3
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO startpdvd) ELSE (goto end)
tartpdvd
REM "C:\Program Files (x86)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe" /LaunchProgram PowerDVDCinema
"C:\Program Files (x86)\CyberLink\PowerDVD15\PDVDLP.exe" /LaunchProgram PowerDVDCinema
timeout 2
:mountiso
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
IF EXIST E:\BDMV\. GOTO playingiso
IF EXIST E:\VIDEO_TS\. GOTO playingiso
timeout 1
IF EXIST E:\BDMV\. GOTO playingiso
IF EXIST E:\VIDEO_TS\. GOTO playingiso
timeout 2
IF EXIST E:\BDMV\. GOTO playingiso
IF EXIST E:\VIDEO_TS\. GOTO playingiso
timeout 3
IF EXIST E:\BDMV\. GOTO playingiso
IF EXIST E:\VIDEO_TS\. GOTO playingiso
GOTO ejected
:playingiso
timeout 2
IF EXIST E:\BDMV\. GOTO wait
IF EXIST E:\VIDEO_TS\. GOTO wait
GOTO ejected
:wait
timeout 3
GOTO playingiso
:ejected
REM taskkill.exe /IM PowerDVDCinema11.exe
taskkill.exe /IM PowerDVDCinema.exe
timeout 3
taskkill.exe /IM Activate.exe
GOTO end
:end