Running a task every month

  • Thread starter Thread starter Beren
  • Start date Start date
B

Beren

Hello,
I need to run a routine every first day of the month, even when there is no
page request.
What would be the best way of achieving this ? A cache variable ?

Thanks,

Beren
 
Thank for the replies, but this means I can't start the routine from the
server, making the whole system dependent of a client request. Isn't there a
way to let the server govern this ?

Thanks,

Beren
 
Beren,

Setup a Windows Scheduled Task that will call a browser with an url to the
page that runs the routine.

Eliyahu
 
Why can't you? Usually servers have browsers installed on them. Just make an
url to localhost.

Eliyahu
 
U can use a timer. But u should use System.Threading.Timer which uses CLR
thread and doesn't requires a client request.. But be careful that u do
samething more than one times.... U should develop a mechanism to mark that
u successfully did it for this month...
 
Thanks for your help everyone, I've got a good idea of what I can do now.

Beren
 

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