Implement hourly event in a server

  • Thread starter Thread starter Crirus
  • Start date Start date
C

Crirus

I have a server and I need to implement a automate process that occur at a
certain interval, based on current time. I need to "tick" at every 10
minutes or (another version) when time is 30 minutes after exact hour like
in 1:30, 2:30...etc
 
If you have a WindowsForms application you could drop a Timer component on
your form. There is a interval property in which you can specify how much
time goes by before the TimerTick event will happen.
 
Hi Crirus,

I cannot imaging that a simple answer as have a look at system.timers.timer
would help when you do that you see than also the text about
threading.timers.

But don't use the timer from the toolbox everybody get problems using that
when it is for more than a simple solution and I never seen a simple
solution with you. (that is system.forms.form.timer)

But you never knows if this was what you where looking for?

:-)

Cor
 
Hi Crirus and Cor

I'm sorry if my answer was a little bit too basic. :-(

I agree with Cor, for advanced solutions...
 
Hi Jan,

No problem, but I have seen here what kind of solutions Crirus is making.

In another situation it is probably the right answer because it is the most
simple.

Cor
 
Hi Crirus,

Just a change in the words from the text, I saw I have changed to much in
the sentence

I cannot image that a simple answer as: have a look at system.timers.timer
would help you. When you do that, you will see than also the text about
threading.timers.

Cor
 
Really, there is little difference between running a program on a
workstation like Windows 2000 and a Server. I suggest that you consider
running your program as a service, you can then set this to run as the
system account. This way users will be able to log on and log off without
terminating your program.

Regards - OHM#
========================

Jan said:
Hi Crirus and Cor

I'm sorry if my answer was a little bit too basic. :-(

I agree with Cor, for advanced solutions...

Best Regards - OHMBest Regards - OHM (e-mail address removed)
 
* "Crirus said:
I have a server and I need to implement a automate process that occur at a
certain interval, based on current time. I need to "tick" at every 10
minutes or (another version) when time is 30 minutes after exact hour like
in 1:30, 2:30...etc

Why not have a look at the timer classes provided by the .NET Framework?

'System.Threading.Timer', 'System.Timers.Timer',
'System.Windows.Forms.Timer' (not the best choice in your case).
 
Back
Top