Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4113600
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:20:46+00:00 2026-05-20T22:20:46+00:00

Possible Duplicates: windows service vs scheduled task Windows Service Vs Simple Program I’m trying

  • 0

Possible Duplicates:
windows service vs scheduled task
Windows Service Vs Simple Program

I’m trying to create a program that runs periodically (say every 5 minutes), or have the program running and have it execute the function within it (every 5 minutes).

The program is to obtain data from a database when it’s executed and then write this to (for now) say info.txt file (no sensitive stuff is contained in here). each time it writes to the file it should overwrite the existing info within the file.

The program should also be started automatically at windows start up. (thus no need to login on the machine and to execute the .exe [if it’s a normal program and not a service])

In between the periods that it executes the program would have nothing to do.

Therefore, should I run this program as a Windows Service, or should I use the Task Scheduler to periodically start the program to do this?
My goal is for this program to run as smooth as possible without clogging up resources. (eg. it shouldn’t need more than 5% of the cpu)

I hope my question was clear enough.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:20:47+00:00Added an answer on May 20, 2026 at 10:20 pm

    I would go with application that is triggered by task scheduler. Only thing that you need to worry about is to run single instance of your application.

    You can set task to run under specific user account and to run even if user is not logged on. There are number of events that can trigger task star like “Windows start”, “System Idle”…

    Other advantage is: If something crashes you can set task scheduler to send you an email or alert you in number of ways. You can control “exit code” of your application and signal to task scheduler what’s going on and what to do.

    There are a lot of positive features that task scheduler offers but not many people are using them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Querying if a Windows Service is disabled (without using the Registry)? I
Possible Duplicate: Setting a thread priority in a service I've created a Windows Service
Possible Duplicates: Best IDE / TextEditor for R Recommendations for Windows text editor for
Possible Duplicates: iPhone development on PC iPhone development on Windows Do I really need
Possible Duplicates: Best “official” scripting language for Windows programmers Universal scripting language for Windows
Possible Duplicates: how do I create my own URL protocol? (e.g. so://…) How do
Possible Duplicates: Determine if O/S is Windows 7… How to tell if the OS
Possible Duplicate: Calling a webservice that uses ISO-8859-1 encoding from WCF I am trying
Possible Duplicates: Detect Antivirus on Windows using C# How to detect if a virusscanner
Possible Duplicates: C# - Get list of open tasks On Windows XP, how do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.