Solved

wait for download

Posted on 1998-11-04
1
175 Views
Last Modified: 2010-04-02
I have coded a little program which checks for new files in a directory and sends the filename name to another program but now to the problem... when someone sends a quite big file or have a slow modem (by ftp)my program discover the not fully downloaded file and executes the other program who cannot (ofcourse)read the file...
how do know if the file is fully downloaded?
0
Comment
Question by:webrage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
d94stein earned 100 total points
ID: 1176934
One solusion to the problem could be to try to open the file
for update. If the file isn't closed yet you will not be able
to do this, but if it is closed (download finished) you will
be successful and you could just close the file and send
the filename to the other program.

Depending on the system you are using there could be better
solusions.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question