Scheduled Tasks vs Service

scheduled-taskservice

I am a programmer designing a solution to a problem that we are having. I was thinking about writing an app and using Windows Scheduled Tasks to run it once per day or so as opposed to writing a service that would sleep most of the time and wake up once per day to do it's thing. But my question is do admins typically use Windows scheduled tasks?

The application would be to delete old files that we generate and cannot clean up any other way (for good reasons).

Best Answer

I would agree with others in that scheduled tasks would be appropriate for your needs. I would add though (as a programmer myself) that as a scheduled task, either have some sort of confirmation be sent to you (email?) that the task ran successfully and/or append results to a log file somewhere for potential troubleshooting. Doing some sort of reporting/logging/auditing always comes in handy should you need it.