I am going to be creating an application which will monitor a folder, which could be a network folder and when new files are added in that folder it will notify the application. On notification application will import those files names into a listbox and will give the option to user to organize(move) those files into a different directory.
Two main things here, 1. I have to implement a logic for monitoring the new files in the folder. 2. I have to move it into new directory and in some cases I will have to create those new directories as user specify.
For the first step I am confused to either implement it as a windows service using FileSystemWatcher class, example can be seen here. http://www.codeproject.com/Articles/32591/Creating-a-Windows-Service-for-Watching-System-Dir
or do a file check based on timer, lets say every 5 minutes.
If I do it as a service how can the service notify application?