-
Member
Simple Batch script to start and restart all bots at once
So i made a little script in batch to start all my bots at once and it will also restart them evrey 30 min incase some of the bots crashed..
here is the script enjoy :
PHP Code:
@echo off
:loop
cd "C:\FolderLocation"
start ExecutableName.exe
timeout 1800 > NUL
taskkill /IM ExecutableName.exe >nul
goto :loop
exit
How to use:
1. Create a new text file
2. Paste the code into the text file
3. Edit it to whatever setting that u want.
Change "ExecutableName.exe" to whatever is the name of the exe u are using.
Change "FolderLocation" to the folder containing ur exe file.
You can edit the "1800" to whatever number u want in second so 1800 seconds is 30min
You can add as many bots as you want just like that:
PHP Code:
@echo off
:loop
cd "C:\FolderLocation"
start ExecutableName.exe
cd "C:\FolderLocation"
start ExecutableName.exe
cd "C:\FolderLocation"
start ExecutableName.exe
cd "C:\FolderLocation"
start ExecutableName.exe
cd "C:\FolderLocation"
start ExecutableName.exe
cd "C:\FolderLocation"
start ExecutableName.exe
timeout 1800 > NUL
taskkill /IM ExecutableName.exe >nul
goto :loop
exit
4. Save it as .bat file like that name.bat
5. Profit
-
Post Thanks / Like - 2 Thanks
-
Member
im using mac, would it still work?
-
Member
Originally Posted by
avenger9909
im using mac, would it still work?
no idea.. i think batch is only for window it works with cmd commands
-
Member
This is quite good but it doesnt seem to exit the bot after restarting it. Making another cmd window
edit: My bad. its good
Last edited by lancersc; 07-30-2016 at 12:22 AM.
Reason: additional