I have a certain task to do which requires some chrome profiles to stay launched and never close them, the problem is sometimes the chrome app may get crashed causing the closing of all the profiles I'm opening I calculated the duration is about 4 days, I thought about making a loop using cmd that checks if the chrome process is still launched or not and if not it opens the profiles again, like in Linux we can open a certain process using Terminal and then we can't close the process unless we closed the terminal console, I'm new at Batch language here what I did:
@echo off
SET /A "index = 1"
SET /A "count = 5"
:while
if %index% leq %count% (
echo Checking if the chrome is still working...
rem a command to stay checking the process
rem if no
rem start "name of the shortcut of the profile"
SET /A "index = index + 1"
goto :while
)
To be honest I don't know what am I doing.