Solved

Status bar for a ftp download

Posted on 1998-08-14
6
137 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA to copy paste columns form one file to other 20 100
Updates not working for MS Windows 7 12 194
How to Add / Edit Windows Menu 4 74
RUNRMTCMD from AS/400 13 101
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

733 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