I have a bit of code that needs to sit on a windows server 2003 machine and run every minute.
What is the recommended way of handling this? Is it ok to design it as a console service and just have the task scheduler hit it ever minute? (is that even possible?) Should I just suck it up and write it as a windows service?
No, it won't execute.
After we select the batch file, we go to the right tab and select 'Properties', and the task Properties tab should appear: We go to the 'Triggers' tab and select the 'Edit' option: An 'Edit Trigger' screen will appear. To set the script to run hourly, we select the 'Repeat task…' option and enable it.
Since it needs to run every single minute, I would suggest writing a Windows Service. It is not very complicated, and if you never did this before, it would be great for you to learn how it is done.
Calling the scheduled task every minute is not something I would recommend.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With