View Single Post
  #1 (permalink)  
Old 3rd January 2003
lekiam lekiam is offline
Junior Member
BS.Player Newbie
 
Join Date: Jan 2003
Posts: 3
Rep Power: 0
lekiam is an unknown quantity at this point
Default 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.
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20