|
-
June 26th, 2001, 05:10 PM
#1
Avoiding an error with files
I'm making a program that keeps a watch on a specific directory which recieves uploads from an FTP site. The program is designed to print all the files that go into that directory (they are all Word documents). How do I prevent my program from trying to print or move the document while it is still being transferred. Is there a way for my program to check if the file is still transferring? Any insight would be appreciated. Thanks!
-
June 26th, 2001, 08:29 PM
#2
Re: Avoiding an error with files
I assume that the file size will keep on increasing if the file is still in transfering. so you can have a timer to keep track of the size of the and once the size doesn't change within a timeout value, the it should have been downloaded completed.
HTH
cksiow
http://vblib.virtualave.net - share our codes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|