Click to See Complete Forum and Search --> : Avoiding an error with files


Ryanitus
June 26th, 2001, 05:10 PM
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!

cksiow
June 26th, 2001, 08:29 PM
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