Helppppp!!
DESCRIPTION:
I'm trying to upload and download several files from a VB6 application to a server using FTP, this is how:
CODE:
Private sub upload/download_files()
for each file of list_of_files
cmd= "GET/PUT " & filename & " " & dirOfFilename & filename
'where GET is to download and PUT to upload
If inetReady(True) Then
Call SendCommand(cmd)
End If
end sub
Public Sub SendCommand(ByVal cmd As String)
On Error GoTo SendCommandErr
frmExplore.Inet1.Execute , cmd
Exit Sub
SendCommandErr:
MsgBox "Error: " & Err.Description
Resume Next
End Sub
Note: I have the upload in one sub and the download in another one.
PROBLEM:
The thing is that if I try to download 4 files it will only get 2, and for the upload is the same, the message that appears is that the Inet.stillExecuting = true. So , when I try to send the first file by the time that the cycle goes to the second file the first one has not finished.
I have tried :
inet.cancel ( it stops everything)
timer ( to wait for the response and it cycles)
what can I do????????
Thank you all
DESCRIPTION:
I'm trying to upload and download several files from a VB6 application to a server using FTP, this is how:
CODE:
Private sub upload/download_files()
for each file of list_of_files
cmd= "GET/PUT " & filename & " " & dirOfFilename & filename
'where GET is to download and PUT to upload
If inetReady(True) Then
Call SendCommand(cmd)
End If
end sub
Public Sub SendCommand(ByVal cmd As String)
On Error GoTo SendCommandErr
frmExplore.Inet1.Execute , cmd
Exit Sub
SendCommandErr:
MsgBox "Error: " & Err.Description
Resume Next
End Sub
Note: I have the upload in one sub and the download in another one.
PROBLEM:
The thing is that if I try to download 4 files it will only get 2, and for the upload is the same, the message that appears is that the Inet.stillExecuting = true. So , when I try to send the first file by the time that the cycle goes to the second file the first one has not finished.
I have tried :
inet.cancel ( it stops everything)
timer ( to wait for the response and it cycles)
what can I do????????
Thank you all