I have written a Windows service using FileSystemWatcher. It successfully processes one file when dropped into the target directory, but doesn't do anything when a subsequent file is dropped. Any suggestions would be welcomed.

Recommended Answers

All 2 Replies

Post your code

To watch for changes in all files, set the Filter property to an empty string ("") or use wildcards ("*.*").
Look at WaitForChanged Method. - A synchronous method that returns a structure that contains specific information on the change that occurred.

Read more on FileSystemWatcher - http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.