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

  • Home
  • SEARCH
  • 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 9174411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:45:09+00:00 2026-06-17T16:45:09+00:00

I am working on a window service and I have to schedule it. Schedule

  • 0

I am working on a window service and I have to schedule it. Schedule is set to any three days of a week and four times a day. At any time when one starts service, It must pick the next execution time.

This next execution time can be in the same day or next scheduled day(may be with the gap of a day or two).

  • 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-06-17T16:45:10+00:00Added an answer on June 17, 2026 at 4:45 pm

    Take a look at Task Scheduler Managed Library (Codeplex). I believe it is maintained by Microsoft themselves.

    Once you add the DLL reference to Microsoft.Win32.TaskScheduler, you can use it really easily like so:

    var taskService = new TaskService();
    var task = taskService.NewTask();
    
    task.Triggers.Add(new WeeklyTrigger(DaysOfTheWeek.Friday, 1));
    task.Actions.Add(new ExecAction("YourProgram.exe", null, null));
    
    task.RootFolder.RegisterTaskDefinition("YourTaskName", task);
    

    That will register a task that runs every Friday, executing YourProgram.exe.

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

Sidebar

Related Questions

I have a window service which plays a sound file at a specified time,
hi i am working on c# window services, for that i have set some
I am working on a Windows service which needs to schedule tasks whenever one
I'm doing a C# project window service. 1st time doing it. I have managed
I have modified a working Windows service that had always been starting beforehand. After
I have a service, as follows: The most basic (working) CherryPy 3.1 Windows service
I have a working WCF service. I want to deploy it on Windows Azure.
I'm working on Windows phone client for one service with Oauth1 API. In API
I am working on a window in which I basically have a listbox (formed
I have been working on many applications which run as windows service or scheduled

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.