Raising/Catching an timer event

  • Thread starter Thread starter Ian Walsh
  • Start date Start date
I

Ian Walsh

Hi,

I'm a bit knew to events, so help would be appreciated. I'm developing
a windows service that needs to fire an AD update at a set time every
night (04:00).

I'm guessing I need to capture a system.timer event at that time and
then run my process. Beyond this I'm pretty clueless...

Has anyone got a sample piece of code that does something similar to
this, or can point me towards a decent example.

Cheers.
 
Ian,

I wouldn't use a windows service to do this, since it is a waste of
processing time for most of the day when you aren't performing the update.

Rather, you should create an EXE which will perform your update, and
then add the task to the Scheduled Tasks, setting it to fire at 4:00 every
night.

Hope this helps.
 
Back
Top