Thanks, works like a charm now ;)
>Try to use ADIR() instead. The FILE() function has it quirks.
>
>>Neat trick, however this code dosent work? The file() function is always returning .t. because it thinks the file is there because its in the executable, even with I use home() it returns true.
>>
>>
>>lcWaitFile = "wait1.avi"
>>
>>if !file(home() + lcWaitFile))
>> strtofile(filetostr(lcWaitFile), lcWaitFile)
>>endif
>>
>>
>>>
>>>The activex you're using requires file on disk because it cannot see files included in exe. You've to either distribute AVI as a separate file or copy it out at your app start.
Strtofile(Filetostr("wait.avi"), "wait.avi"))
You can check if file already exists and skip copying in this case.