0

I have a C# programm currently implemented as a Windows Forms application. It can easily be rewritten to a console application.

This application fetches data from a certain source and writes it to SQL tables. I also have a machine with Windows Server 2008 R2 on it.

I wonder would it be possible to somehow deploy my application on the abovementioned machine in a way that would trigger the execution of my programm on a certain weekday at a certain time, every week?

チーズパン
  • 2,752
  • 8
  • 42
  • 63

3 Answers3

6

One approach would to be write a Window Service instead, upon startup you can register a timer, or event to fire at a particular time to do your processing.

You can read more about writing windows services here

Ian
  • 33,605
  • 26
  • 118
  • 198
3

Yes you can Schedule a task in Windows Scheduler

Tzah Mama
  • 1,547
  • 1
  • 13
  • 25
2

I had given one solution for this type of situation. Instead of writing similar answer I am just pointing you to the answer -

Periodic execution of particular code in c#

Community
  • 1
  • 1
brainless coder
  • 6,310
  • 1
  • 20
  • 36