T
tshad
I have a filewatcher program that tells me that a file has been created in
my folder. The problem I want to immediately move the file or access it.
If the file is large, it not be completely copied yet.
How do I tell FileWatcher to only tell me when the file is completely there?
fileWatcher = new FileSystemWatcher();
fileWatcher.Path = SemaSettings.InputFilePath;
fileWatcher.NotifyFilter = NotifyFilters.DirectoryName |
NotifyFilters.FileName;
fileWatcher.Filter = "*.*";
fileWatcher.Created += new FileSystemEventHandler(OnChanged);
fileWatcher.EnableRaisingEvents = true;
Thanks,
Tom
my folder. The problem I want to immediately move the file or access it.
If the file is large, it not be completely copied yet.
How do I tell FileWatcher to only tell me when the file is completely there?
fileWatcher = new FileSystemWatcher();
fileWatcher.Path = SemaSettings.InputFilePath;
fileWatcher.NotifyFilter = NotifyFilters.DirectoryName |
NotifyFilters.FileName;
fileWatcher.Filter = "*.*";
fileWatcher.Created += new FileSystemEventHandler(OnChanged);
fileWatcher.EnableRaisingEvents = true;
Thanks,
Tom