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!
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