I have 3 discord bots. Sometimes their scripts close when my WiFi dips up and down (thanks, Comcast).
I have a little experience with batch but I am stuck coming up with a batch script that detects when a certain program closes.
Assume I have the following files:
bot1-1.py
bot1-2.py
bot2-1.py
bot2-2.py
bot-3.py
What's the best way to open these files again if they close?
I would like the batch program to detect when any of the python programs close and reopen them.
Thanks to all who attempt to find an answer.
EDIT: This question is very similar to Make a .batch file to start/stop a program?