By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,246 Members | 1,515 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,246 IT Pros & Developers. It's quick & easy.

WinService and filesystemwatcher

P: n/a

I'm trying to make a service that check if a new file is created in a specific folder. I use this code

fwFichierImp.Path = "c:\Test\
fwFichierImp.Filter = "
fwFichierImp.IncludeSubdirectories = Tru
fwFichierImp.NotifyFilter = NotifyFilters.CreationTim
fwFichierImp.EnableRaisingEvents = Tru
AddHandler fwFichierImp.Created, AddressOf ImpFichie

but the Handler doesn't execute the code. In the handler I only write an entry into the Log. I use LocalSystem to install my service. If I write into the Log in the OnStart it work perfectly but not in the handler

Thanks for any help you can provide.
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.