If we need to write a program that works periodically, which way do we prefer?
Writing a windows service or writing a console application which works as scheduled task?
Alternatively have a look at quartz.net if you want something to run periodically. It's a pre-built framework that allows you to schedule tasks and saves you writing the service part yourself.