Click here to Skip to main content
Rate this: bad
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 at 28-Dec-14 8:50am
Thank you very much
Sergey Alexandrovich Kryukov at 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
0 Zoltán Zörgő 380
1 Sergey Alexandrovich Kryukov 185
2 OriginalGriff 150
3 Mika Wendelius 83
4 Peter Leow 80
0 Sergey Alexandrovich Kryukov 8,373
1 OriginalGriff 6,466
2 Peter Leow 3,567
3 Zoltán Zörgő 3,316
4 Richard MacCutchan 2,397

Advertise | Privacy | Mobile
Web04 | 2.8.150123.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