C# How can I trigger an event at a specific time of day?
Posted
by Andrei
on Stack Overflow
See other posts from Stack Overflow
or by Andrei
Published on 2010-03-19T10:39:46Z
Indexed on
2010/03/19
10:41 UTC
Read the original article
Hit count: 299
Hello everybody.
I'm working on a program that will need to delete a folder (and then re-instantiate it) at a certain hour of the day, and this hour will be given by the user.
The hour will most likely be during the night, because that's when nobody is accessing the folder (it's outside working hours). Is there a way to trigger that event at that certain hour?
I know about timers, but is there an easier way to do this without a timer that ticks and checks to see what time it is?
Thanks.
© Stack Overflow or respective owner