I have a batch job that kills a task and the restarts it after 5 minutes. I have tried to name it with a .bat and .cmd extension, but I cannot get it to close that DOS window after it runs. Can anyone help with this please?
taskkill /f /im MyProgram.exe
ping 220.127.116.11 -n 1 -w 300000