C# Windows service with FileSystemWatcher

  • Thread starter Thread starter Niklas E
  • Start date Start date
N

Niklas E

Anyone who has an example of a C# (or VB.net) Windows Service which uses the
FileSystemWatcher? In my application I want to look in a folder for new
*.pdf and then execute a method with the filename as a parameter.

Best regards
Niklas E
 
Hi Niklas,

Niklas E said:
Anyone who has an example of a C# (or VB.net) Windows Service which uses the
FileSystemWatcher? In my application I want to look in a folder for new
*.pdf and then execute a method with the filename as a parameter.

Best regards
Niklas E

No, but these links should give you a good start.

FileSystemWatcher:
http://msdn.microsoft.com/library/d.../frlrfSystemIOFileSystemWatcherClassTopic.asp

Services explained:
http://msdn.microsoft.com/library/d...tingconfiguringwindowsserviceapplications.asp

Services example & explanation:
http://www.codeproject.com/csharp/csharpsvclesson1.asp
http://www.codeproject.com/csharp/csharpsvclesson2.asp

ServiceBase:
http://msdn.microsoft.com/library/d...systemserviceprocessservicebaseclasstopic.asp

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top