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.
 

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