Information générale
Catégorie:
Codage, syntaxe et commandes
I agree with Steve, with the Notepad it is not a proper test (you even can rename/move the file when it is open in the Notepad).
In your case you probably may check for the file size, say, each five seconds, and if the size is not 0 and has not been changed, then download is comleted.
Perhaps there is a file end marker? Then you could check for it.
>Hi
>
>Our client uplaods files into a DOS PC. A FoxPro application copies files from the DOS machine into another folder. The upload connection is slow and usually files are quite large. I do not want to copy a file while it is still being uploaded. I tried FOPEN() with read-write unbuffered option hoping that it will fail while the file is being uploaded, but it doesn't. To confirm this, I opened a text file on my local drive using Notepad, and I was able to open it using FOPEN() and I was also able to write into it using FWRITE()! (while it was still open in Notepad).
>
>Is there a way in FoxPro to findout if a text file is open by any Windows application?
>
>Thanks.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement