windows service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi there
i have made a windows service that is startup automatic and run as local
system service.this service is just copy files from source folder to
destination folder.
my problem is that i want this service to do its job every specific amount
of time.
i have tried to use a timer but this seems to be nothing. i use timer of type
System.Timers.Timer and use its Elapsed event to run my service.
but as i said that didn't do any thing
please any one can help me
 
Hi Alex,
for your System.Timers.Timer object did you:
1. Add an event handler for the Elapsed method - the method that gets called
after the interval period has elapsed
2. Set the Interval property
3. Called the Start() method on the timer to set it going

Hope that helps
Mark R Dawson
 

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