Solved

Making a download manager

Posted on 2003-11-09
4
298 Views
Last Modified: 2013-12-03
I want to make a download manager type thing, a simple one.
I want it to be able to download at least 3 files at the same time and show the progess in a progess bar along with the time it will take, download rate.
And most importantly to be able to pause it and resume and stop the download.
I was able to download a file of the internet but i didnt have any download rate and time it will take and i couldnt find how to pause/resume/stop it.
I would appreciate source codes.
0
Comment
Question by:gigazer
[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
4 Comments
 
LVL 6

Accepted Solution

by:
DaFox earned 50 total points
ID: 9711439
Hi,

take a look at this project (comes with full source code) -> http://codecentral.borland.com/codecentral/ccweb.exe/download?id=17604

It's a multithreaded download manager that is able to start/stop/pause/resume downloads. Downloads the files with multiple streams, gets the correct file size and calculates the remaining time.

It's a very good coded project (see the votes!).

Best regards,
Markus

PS: BTW, it's using the Indy components.
0
 
LVL 5

Assisted Solution

by:DeerBear
DeerBear earned 50 total points
ID: 9712949
Hi,

Along with the suggested project, you should take a look at the
Indy components.

The basic idea for download time is that you have to sample out some data and times and
make the appropriate calculations( if I got W bytes in X time, then in Y time I'll get Z bytes ).

As to resume/pause download, I would *guess* that you
should keep track of the file position and issue it when starting to download.

The main problem in this area is that the server MUST support resuming and not all of
them do.

My 2c.

HTH,

Andrew
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 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