Hi Erel, am trying to download a zip file - the data in previous post is the serverpath as picked up by the event in below sub
Sub FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
Log(ServerPath & ", Success=" & Success)
If Success = True Then flag1 = True
If Success = False Then
Log(LastException)
End If
End Sub
I can see the file on the ftp server - by using below code which gives a positive including the file I am testing with
Sub FTP_ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
Log("server path " & ServerPath)
If Success = False Then
Log(LastException)
Else
Log("list success is " & Success)
For i = 0 To Folders.Length - 1
Log("list " & Folders(i).Name)
Next
For i = 0 To Files.Length - 1
Log(Files(i).Name & ", " & Files(i).Size & ", " & DateTime.Date(Files(i).Timestamp))
Next
End If
End Sub