I have a need to keep a task running all the time which calls a batch file that is pinging a host to cause a delay before a secondary batch file is called. I have configured it to run each time the system starts however this does not keep the task running. Is there way to achieve this and if so how?
srvany can be used to run a batch file as a service. It is a Microsoft-created utility. If you're intent on using a Scheduled Task, you'll just have to set it to run every fifteen seconds or something.
Also, I would recommend using the