[02/03] Microsoft FTP issue
A while back I got the FTP code from the following link:
http://support.microsoft.com/default...b;en-us;832679
It actually works great but until recently the clients are saying things are happinging. I log into a ftp server and then get a list of files and loop through them and run a process on certain files. Well, turns out I am only getting part of the file list. Has anyone ever seen this before?
the part of my code that searches:
VB Code:
sFiles = ff.GetFileList("EXT_DIR")
'Loop through each file in filelist and download file and log when download complete.
For Each sFile In sFiles
sFile = sFile.Trim
'Write each file found to logfile
If sFile.Length > 0 Then
'XML_STARTSWITH
'ONLY WANT FORMATED FILES LIKE SO: TEST1<value>.xml, TEST2<value>.xml
If sFile.EndsWith(".xml") = True And fnStartsWith("TEST1|TEST2", sFile) Then
'Download file from the FTP site to your local hard disk.
ff.DownloadFile(sFile, IncomingPath & sFile)
ff.Log(sFile, ostwFile, "0")
'increment counter of files downloaded
FilesDownloaded += 1
' Remove the file from the FTP site.
If (ff.DeleteFile(sFile) = True) Then
ff.Log("File: " & sFile & " has been deleted", ostwFile, "0")
Else
'Unsuccessful removing the file from the FTP site
ff.Log("File: " & sFile & " could not be deleted", ostwFile, "0")
End If
End If
End If
Next
The result is about 28 files that look like this (47 characters):
ABCBOflinePassBGGamesABCD665999888200640600.xml
Is is possible that the code microsoft provided only support so many characters returned?
Since my files start with TEST1 & TEST1 is there a way to just query for these?
Thanks for all the help in advance.