Sub Ftp_ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
For i = 0 To Files.Length -1
list1.Add(Files(i).Name)
Target = list1.size
If myfile < list1.Size -1 Then
myfile = myfile + 1
Activity.Title = " FILES WAITING ON SERVER " & Target
End If
Next
File2Download = (list1.Get(myfile))
FTP.DownloadFile(File2Download, False, File.DirRootExternal & "/inbox", File2Download)
Wait(1)
FTP.DeleteFile(File2Download)
End Sub