Timers(?)
-
Any suggestions on using a timer to check for a backup log's existence at a certain time every day? Is there some other function I should be using instead of Timer? Newbie needs help. Thanks! :confused: Stacy
-
Any suggestions on using a timer to check for a backup log's existence at a certain time every day? Is there some other function I should be using instead of Timer? Newbie needs help. Thanks! :confused: Stacy
At a certain time every day? Doesn't sound like a job for a Timer. Sounds more like using the Scheduled Task control panel. Then your app wouldn't have to bother with the time or a countdown timer. RageInTheMachine9532
-
At a certain time every day? Doesn't sound like a job for a Timer. Sounds more like using the Scheduled Task control panel. Then your app wouldn't have to bother with the time or a countdown timer. RageInTheMachine9532
Can I create a scheduled task programatically? This was written as a service. Thanks! Stacy Springer
-
Can I create a scheduled task programatically? This was written as a service. Thanks! Stacy Springer
If it was written as a Service, then you can't launch it with the Scheduler. What does this thing do? Why the service? RageInTheMachine9532
-
If it was written as a Service, then you can't launch it with the Scheduler. What does this thing do? Why the service? RageInTheMachine9532
The service was designed to access a network drive once a day and verify that a certain backup file exists and that the size is greater than 500MB. If the file is there and meets the size requirement it sends an email to several people letting them know the backup was successful, else it sends an email indicating backup failure. I wrote it as a service to ensure it would run without user intervention and whether or not a individual was logged into the server it is running on. This has been my first project and a good learning experience. I appreciate any advice you have to offer. Thanks! :) Stacy
-
The service was designed to access a network drive once a day and verify that a certain backup file exists and that the size is greater than 500MB. If the file is there and meets the size requirement it sends an email to several people letting them know the backup was successful, else it sends an email indicating backup failure. I wrote it as a service to ensure it would run without user intervention and whether or not a individual was logged into the server it is running on. This has been my first project and a good learning experience. I appreciate any advice you have to offer. Thanks! :) Stacy
Well, if you want to keep it as a service, then you would have to use a Timer to wake up every so often, poll the system for the time, then see if it is time for the service to do its job. Configuration might be done in an .INI file, for time to wake up and do its job, then restart the service. RageInTheMachine9532