I need to create an application that runs in the background throughout the day. For this, I created a console application, set the output to "Windows Application" and configured the code to run in the system tray. For the part of the application to run all day, I thought about running the application every 5 minutes and checking if there are any pending processes. If there are no processes pending for that day, the application will be on hold and will not run again until the next day.
How can I create the parts to run all day and the application only run again the next day if a condition is true? Are there any recommendations or any impediments or problems with the creation of this type of application?
Best regards for everyone.