Solved

wait for download

Posted on 1998-11-04
1
171 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now