I have a .bat file that launches the following: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://localhost/TestApiRest/ClienteApiRest.php. I have this programmed with a Windows Task. But my problem is that as this bat is executed, instances of the chrome that have already been executed remain active. The question is: is there any way to, for example after a certain time, delete the created task?
Thank you very much in advance and until another contact.
If you want to stay inside bat you should be able to do it with
taskkill /IM "process name" /F
I don't have a windows handy but I would say that putting
chrome.exe
as process name the chrome would be loaded.If you want to kill only one tab instead of the browser I don't know if it's possible