Click here to Skip to main content
11,929,166 members (50,587 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
hi all,
I'm developing a windows service alarm clock using c# language at visual studio 2010.My alarm clock is designed for alarming any time,any date,any year.But if I set alarm with a date of after 5 days in this year at 3:30am it doesn't work because the system can not save the alarm time within date & year & alarm file.How can I solve it?Please help me.
Posted 22-Feb-13 10:40am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Of course you can do it. But, instead of developing your own service, why not using one which is already available and designed for such purposes?

It is called Window Task Scheduler, see[^].

First, you can schedule events using command-line utilities AT.EXE or CSHTASKS.EXE (which is replacing AT.EXE), see:[^],[^],[^],[^].

And you also can use Window Task Scheduler API, please see:[^],[^].

To see how can you use it with .NET, see this CodeProject article: A New Task Scheduler Class Library for .NET[^].

zakariashuvo 28-Dec-14 8:50am
Thank you very much
Sergey Alexandrovich Kryukov 28-Dec-14 11:05am
You are welcome. Will you accept the answer formally (green "Accept" button)? In all cases, your follow-up questions will be welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100