I'm not sure where to go to get help on this but I want to write a batch script that will start a website if it isn't started and detect if it is closed and reopen it again, I'm not sure if this is possible but im really intrigued to find out so far I'm stuck on how to get it to loop as in constantly check if the website is open or if it is closed right now I'm going somewhere along the lines of this but I get stuck on trying to figure out how to loop it to where it will reopen the website if closed
@echo off
Color 09
Title Website Checker
Goto start
:start
Taskkill /T "msedge.exe"
Cls
Echo press any key to launch website.com
Pause
Start www.website.com
Timeout /t 15
Pause
I'm not sure where to go to get help on this but I want to write a batch script that will start a website if it isn't started and detect if it is closed and reopen it again, I'm not sure if this is possible but im really intrigued to find out so far I'm stuck on how to get it to loop as in constantly check if the website is open or if it is closed right now I'm going somewhere along the lines of this but I get stuck on trying to figure out how to loop it to where it will reopen the website if closed