So here\'s my problem, I need to do a c# service running on a server who\'s getting file on ftp one time per day at 3am. I think that I can do it with a thread.sleep() or by
Other answers are good. I just thought I'd point out that
compare the DateTime.Now with 3am
is a bad solution, even if you sleep for some time between each check, as it wastes system resources unnecessarily (not only in repeatedly checking the time, but also in the memory usage of the program).