Discussion:
FTP Upload progress, vb6
(too old to reply)
n***@yahoo.com
19 years ago
Permalink
Hi,

Is there a way to find the size of data file uploaded in vb6. I used
the following without any luck.

1. Inet Control

.Execute , "SIZE TestOutput.txt" where TestOutput.txt is the file in
the remote FTP directory. I can get the size using
frmFTP.Inet1.GetChunk(1) while debugging it but not while running it
even though I do the below after Execute step

Do While frmFTP.Inet1.StillExecuting
DoEvents
Loop

2. Winsock control

Cannot specify the password/username (tried using SendData

method) eg: - Winsock1.SendData "USER testuser". Can get the send
progress here. But i "need" to login to the FTP server using a username
and password.

3.FTP from a batch file. Can I call the batch file using shell or
shellexecute function to do
FTP from VB6? How do I log the amount of data transferred during a
upload?

Any help will be very much appreciated.

Thanks,
Ann
Paul Clement
19 years ago
Permalink
On 29 Nov 2005 13:13:24 -0800, ***@yahoo.com wrote:

¤ Hi,
¤
¤ Is there a way to find the size of data file uploaded in vb6. I used
¤ the following without any luck.
¤
¤ 1. Inet Control
¤
¤ .Execute , "SIZE TestOutput.txt" where TestOutput.txt is the file in
¤ the remote FTP directory. I can get the size using
¤ frmFTP.Inet1.GetChunk(1) while debugging it but not while running it
¤ even though I do the below after Execute step
¤
¤ Do While frmFTP.Inet1.StillExecuting
¤ DoEvents
¤ Loop
¤
¤ 2. Winsock control
¤
¤ Cannot specify the password/username (tried using SendData
¤
¤ method) eg: - Winsock1.SendData "USER testuser". Can get the send
¤ progress here. But i "need" to login to the FTP server using a username
¤ and password.
¤
¤ 3.FTP from a batch file. Can I call the batch file using shell or
¤ shellexecute function to do
¤ FTP from VB6? How do I log the amount of data transferred during a
¤ upload?
¤
¤ Any help will be very much appreciated.

See if the following helps:

http://www.vbip.com/itc/itc-http-progress-01.asp

The site has other information about the use of Winsock and Internet Transfer technology:

http://www.vbip.com/default.asp


Paul
~~~~
Microsoft MVP (Visual Basic)
Veign
19 years ago
Permalink
He has been given that code plus much more and will not respond to the
original thread. he just keeps posting a new thread asking the exact same
question.

Just an FYI
--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--
...
Bob Butler
19 years ago
Permalink
Post by Veign
He has been given that code plus much more and will not respond to the
original thread. he just keeps posting a new thread asking the exact
same question.
Just an FYI
Probably waiting for the emails to come pouring in
--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Paul Clement
19 years ago
Permalink
On Wed, 30 Nov 2005 12:21:27 -0500, "Veign" <***@veign.com> wrote:

¤ He has been given that code plus much more and will not respond to the
¤ original thread. he just keeps posting a new thread asking the exact same
¤ question.
¤
¤ Just an FYI

Thanks for the warning. I hadn't noticed his prior post.


Paul
~~~~
Microsoft MVP (Visual Basic)
vantha
19 years ago
Permalink
...
Continue reading on narkive:
Loading...