I have an application that reads in .doc files from a directory, processes them and moves them to an archive directory. My problem is that occassionally the application will leave a couple of files. It is like it just doesn't even see them. I'm using this code to get a list of all the files:
files = Directory.GetFiles(sourcePath, "*.doc")
For Each f As String In files ...
If I go into the dir and open the files and close them, the app picks them up. The files get ftp'd to the directory. Most files get processed but there is always a couple not processed.
Any ideas what might cause this or how to fix it?