Ron,
Basically, what you would do is have a timer that you spawn in the
OnStart method. Once you have that, you can check the file every time the
event fires.
I am curious though, why not instantate a FileSystemMonitor instance and
use that?
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
ni**************@exisconsulting.com
"R A" <ro****@hotmail.com> wrote in message
news:uC*************@tk2msftngp13.phx.gbl...
Hi
I have created a windows service. I need the service to monitor some file
status for any changes in the file size. How can I have the service
execute the monitor function lets say every 10 seconds? do I need to create a
seperate thread for that? I can't use the service events such as OnStart
and others because they are events and I want to constantly monitor the file
size.
Thnaks,
Ron