Home All Groups Group Topic Archive Search About

FileSystemWatcher question....

Author
25 Sep 2006 8:34 PM
Scott
Is it possible to, when using the FileSystemWatcher control inside a Windows
Service, to only run it at certain times?

The company I currently work for wants to have a windows service created
that monitors a given directory for new files, but actually only processes
the files at a certain time ever hour.

Is this possible using this control, or do I have to revert to using a timer
control and manually figuring out what the new files are that way?

Thank you for your help.

-- Scott

Author
26 Sep 2006 12:15 AM
GhostInAK
Hello Scott,

Use a queue.

-Boo

Show quoteHide quote
> Is it possible to, when using the FileSystemWatcher control inside a
> Windows Service, to only run it at certain times?
>
> The company I currently work for wants to have a windows service
> created that monitors a given directory for new files, but actually
> only processes the files at a certain time ever hour.
>
> Is this possible using this control, or do I have to revert to using a
> timer control and manually figuring out what the new files are that
> way?
>
> Thank you for your help.
>