Reputation: 1
I'm required to write a windows service( using C#.net) that reads a folder on a timely basis, and upon finding new files in the folder, import that new files to the current database. This is my first time writing a windows service. I really need some advices on how to start the writing process. thanks.
Upvotes: 0
Views: 126
Reputation: 4663
Read this tutorial to understand how to create Windows Services using c#. Since you need to find the new files added to a folder i recommend using FileSystemWatcher. Read this tutorial to find how to use it.
There are some pitfalls in using FileSystemWatcher though. If you need more functionality than what is offered then read this
Upvotes: 1