|
-
Jun 14th, 2000, 11:29 PM
#1
Thread Starter
New Member
Hi all:
What I'm trying to do is get the file size of a file and kinda build a status bar off of it. That way i can track the progress of the file as it downloads. Hope this make sense.
thx in advance
-
Jun 15th, 2000, 11:15 PM
#2
Thread Starter
New Member
somebody's got to know this. I can get the bytes as they are coming in but i cant get the total before i start the download.
thx again in advance
jre
-
Jun 18th, 2000, 01:10 PM
#3
Lively Member
If you using INET controls, try this way:
Public Sub FtpGetFile()
Inet1.Execute , "GET Test.exe C:\Temp\Test.exe"
FileTransfer
End Sub
Public Sub FileTransfer()
'ProgressBar1.Max = 320000
ProgressBar1.Value = 0.05
Do While Inet1.StillExecuting
If ProgressBar1.Value < ProgressBar1.Max - 1 Then
ProgressBar1.Value = ProgressBar1.Value + 0.05
End If
DoEvents
Loop
ProgressBar1.Value = ProgressBar1.Max
End Sub
-Dj4
-
Jun 18th, 2000, 09:33 PM
#4
Thread Starter
New Member
Dj4, I have that part of it but what im trying to do is have a progress bar and filesize count at the same time.
for ex.
file size on the server is 100k
that will be the progressbar1.max = 100k/byte (which ever)
and as it downloads it will tell me bytes received
hope this makes a little more sense
thx again in advance
-
Jul 12th, 2000, 04:07 PM
#5
Thread Starter
New Member
File Status thru FTP
Hi all i had this post a while back and i was hoping that someone could give me a hand.
The steps that dj4 gave me are great and all but i'm trying to get the size of a file from a server.
Ex.
Server File = xxxx.exe 1658 (file size)
What i want to do is take that file size and make it my progressbar.max.
if anybody doesnt understand any part of this just let me know and i will try to clarify it for ya.
thx in advance
-
Jul 17th, 2000, 02:12 AM
#6
Lively Member
HI
You can try also this sample, but I don't like it that because this is not working automatically. I meen user have to tell where he/she want to put file.
Look here:
http://www.mvps.org/vbnet/code/netwo...ledownload.htm
- Dj4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|