I need to make an application that performs a task at a given time each day, based on the system time. For a simple example, lets say I want to delete all the files in a folder at 11:00 am everyday. The program would obviously be running on a computer thats always on. What is the best way to do this? Do I continuously compare the current time with the target time & when they're equal fire the event? This seems like a waste of cpu resources, but maybe thats the only way to do it. Can somebody post some code to get me started on this? Thanks...