Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running an avi file
Message
 
 
À
16/03/2006 01:11:01
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01104761
Message ID:
01104857
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform