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:
  1. sFiles = ff.GetFileList("EXT_DIR")
  2.  'Loop through each file in filelist and download file and log when download complete.
  3.                 For Each sFile In sFiles
  4.                     sFile = sFile.Trim
  5.  
  6.                     'Write each file found to logfile
  7.                     If sFile.Length > 0 Then
  8.                         'XML_STARTSWITH
  9.                         'ONLY WANT FORMATED FILES LIKE SO: TEST1<value>.xml, TEST2<value>.xml
  10.  
  11.  
  12.                         If sFile.EndsWith(".xml") = True And fnStartsWith("TEST1|TEST2", sFile) Then
  13.                             'Download file from the FTP site to your local hard disk.
  14.                             ff.DownloadFile(sFile, IncomingPath & sFile)
  15.                             ff.Log(sFile, ostwFile, "0")
  16.  
  17.                             'increment counter of files downloaded
  18.                             FilesDownloaded += 1
  19.  
  20.                             ' Remove the file from the FTP site.
  21.                             If (ff.DeleteFile(sFile) = True) Then
  22.                                 ff.Log("File: " & sFile & " has been deleted", ostwFile, "0")
  23.                             Else
  24.                                 'Unsuccessful removing the file from the FTP site
  25.                                 ff.Log("File: " & sFile & " could not be deleted", ostwFile, "0")
  26.                             End If
  27.                         End If
  28.  
  29.                     End If
  30.                 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.