Solved

Status bar for a ftp download

Posted on 1998-08-14
6
138 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 50 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

695 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