Solved

wait for download

Posted on 1998-11-04
1
174 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Path to  STL Map header file 1 91
How to Correctly derive class from CWinThread in MFC 4 120
Android development question 2 111
print bytes of an integer 6 48
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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++.

752 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