Hi Richard
I think you're on to it.

Do you have any ideas how I can try and Close the file?
(I have tried to Kill the Camera but it seems to make no difference to the
file)


On Thu, Dec 8, 2016 at 12:53 PM, Richard Kaye <[email protected]> wrote:

> The source file could be open. You can try getting an FLOCK before you
> attempt your copy. You also might want to look into using the Windows API
> to copy the file instead of the old xBase COPY FILE command.
>
> --
>
> rk
> -----Original Message-----
> From: ProfoxTech [mailto:[email protected]] On Behalf Of Sytze
> de Boer
> Sent: Wednesday, December 07, 2016 6:43 PM
> To: [email protected]
> Subject: Photo capture
>
> I'm still totally lost trying to capture a photo via AVICAP32, so now
> trying alternatives.
>
> Using the Windows software Camera to take a photo.
> All is good. It places the photo into a folder
> C:\Users\Sytze\Pictures\Camera Roll
>
> cdirs=FILETOSTR('picloc.txt')
> ldirs=cdirs+"*.jpg"
> lPics=ADIR(picfiles,ldirs)
>
> trcask350  =cdirs+picfiles(1,1)     &&Yes, it now knows the picture
> trcask351  =Sys(5)+Curdir()+"PICS\"+Alltrim(Str(matties.code))+"_
> PHOTO.JPG"
> **all is good at this stage
>
> COPY FILE (trcask350) TO (trcask351)
>
> Here's the problem
> The file in the 2nd location is a zero byte file
>
> Can anyone suggest why this is so?
>
>
> --
> Kind regards,
> Sytze de Boer
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cag1nny_2phnfuaoqfuavw55fa40bcuvqh_dkwtrpqp1qkht...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to