CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    13

    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!


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    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
  •  





Click Here to Expand Forum to Full Width

Featured