?
Solved

Status bar for a ftp download

Posted on 1998-08-14
6
Medium Priority
?
139 Views
Last Modified: 2010-04-30
I am creating an app. that dial up using RAS, then ftps a file and disconnects.  I am looking for code that will ftp and give the status of the download as it is downloading.  Something like a % complete bar or something to that effect.  Please Help!!!!
0
Comment
Question by:kingjp
[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
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
brunchey earned 100 total points
ID: 1468844
In my opinion you should get a control to do the downloading.  I use the Crescent Internet Toolpak.  It has an ftp control that would make programming a progress bar such as this pretty easy.  Attempting to write code like this without a control would, basically suck.  I have looked at the control that comes with VB5, but this does not have many events in it and is quite limited.
0
 
LVL 1

Expert Comment

by:brunchey
ID: 1468845
Do you want to know anything else about the control?  Anything?
0
 

Author Comment

by:kingjp
ID: 1468846
Using the Inet1 control I was able to make the ftp happen.  I used its properties to find when the job was connecting, connected, recieving/sending information, disconnecting, and if I got an error it returned the error message.  These things are good enough to get me going for now.  I would still like to have a % complete bar, but that is something I will have to work on.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Expert Comment

by:brunchey
ID: 1468847
What you would have to do is be able to know how much of the file you have recieved.  This would be basic math take the total amount of the file recieved so far, divide it by the total file size and you have your percentage.
0
 

Author Comment

by:kingjp
ID: 1468848
Yes, but how do I find out the file size and how much that I have downloaded so far???
0
 
LVL 1

Expert Comment

by:brunchey
ID: 1468849
That is where the ftp control that comes with VB is kind of limited, other controls can get this type of information for you. That is why I recommend switching.
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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

762 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