Michael,
I was just trying to suggest another possibility instead of using RUN command and external program. On the other hand, the proposed solution depends on ActiveX, which is no much better. I used Alexander's Grigoriev library for playing AVI, which doesn't use any ActiveX and it's a pure VFP - API code, but it was quite long ago...
Anyway, good you have your code working now.
>Thanks Naomi! I was able to get it working with what Sergey provided. It ended up looking like this:
>
>ZAPP = ["] + SYS(5) + CURDIR() +'CAMPLAY.EXE' + ["] + ' /A /E'
>ZMOV = ["] + SYS(5) + CURDIR() + 'CMSMovies\' + movie + ["]
>RUN /n &ZAPP &ZMOV
>
>>See also
Re: Clock, hourglass, or other visual wait display Thread #
608057 Message #
608259>>
>>>I'm getting a "file not found" error when trying to run an avi movie. It's a path problem. I'm using Camtasia generated avi files and the Camtasia player to play them on the user's machine. The movies are downloaded from the web to a movie folder. The movie files download and the CamPlayer starts but the error occurs when trying to run the movies. The movies run fine when started manually. The code I'm using is:
>>>
>>>LPARAMETERS movie
>>>LOCAL ZAPP,ZMOV
>>>ZAPP = SYS(5) + CURDIR() + "CAMPLAY /A /E"
>>>ZMOV = SYS(5) + CURDIR() + "moviefolder\" + movie
>>>RUN /n &ZAPP &ZMOV
>>>
>>>The error:
>>>
>>>File not found
>>>Files\MyAppFolder\moviefolder\
>>>
>>>It's in the Program Files folder so I'm assuming that the 'Files' portion of 'Program Files' is all that's being picked up for the path. Can anyone tell me what I'm doing wrong? TIA
If it's not broken, fix it until it is.
My Blog