I currently have a batch script that polls a "service" every five (5) minutes. At times, the "service" that is being polls takes longer to respond for various reasons. The polling batch script hangs as a result. However, simply restarting the scrip, by closing one command window and running the script in a new command window resolves the issue.
Therefore, I wish to achieve one of the following outcomes:
1.) Append code to the existing batch script to restart itself at a predefined interval that I can easily modify
2.) Write a separate script that closes and re-opens the polling script at a predefined interval that I can easily modify
Thank you in advance,