Solved

Status bar for a ftp download

Posted on 1998-08-14
6
133 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
  • 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now