A little autorun problem
I made the following batch file to play my movie, use subtitle and check to see if divx is installed ( if not nimolite executes)
--------------------------------------------------------------------
@ECHO OFF
ECHO.
ECHO Created By
ECHO.
if "%OS%" == "Windows_NT" goto OSNT
IF EXIST %SystemRoot%\SYSTEM\DivXc32.dll GOTO OK
install\nimolitepack10.exe
:OSNT
IF EXIST %SystemRoot%\SYSTEM32\DivXc32.dll GOTO OK
install\nimolitepack10.exe
:OK
START bplay "..\Harry Potter - The Chamber of Secrets CD1.avi" "..\Harry Potter - The Chamber of Secrets CD1.srt" -fs -eend
---------------------------------------------------------------------------------
It works fine when i execute it from harddisk but not when it autoplays when the cd is inserted. it says it can not locate bplay
I think that is because the scripts doesn't know were bplay is wile it is executing (difficult for me to explain myself in englisch, sorry)
So, does anyone know if there is a command for the cd-rom like %cdrom% or something. Just like %systemroot% etc.
ps. I didn't actually burn it to disk, i made an iso and used daemon tools to load it. This should make no difference compared to a real cd.
I would realy apreciate any help.
leki
Last edited by lekiam; 19th September 2010 at 01:13 AM.
|