Originally Posted by
mansorom
I have problem here, I modified the code a little for add new folder so i wanna run 10 bot, but when I run the bat file, all running at once, whats wrong with that? I thought it should running one by one
@echo off
echo Plz do not close this window for auto running
set /p ch=[input fist running bot number]£¨1 2 3 4 5 6 7 8 9 10):
if /i "%ch%"=="1" goto :1
if /i "%ch%"=="2" goto :2
if /i "%ch%"=="3" goto :3
if /i "%ch%"=="4" goto :4
if /i "%ch%"=="5" goto :5
if /i "%ch%"=="6" goto :6
if /i "%ch%"=="7" goto :7
if /i "%ch%"=="8" goto :8
if /i "%ch%"=="9" goto :9
if /i "%ch%"=="10" goto :10
:1
cd 01
start /min ..\bot\NecroBot.exe
echo Running No.01 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd..
:2
cd 02
start /min ..\bot\NecroBot.exe
echo Running No.02 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:3
cd 03
start /min ..\bot\NecroBot.exe
echo Running No.03 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:4
cd 04
start /min ..\bot\NecroBot.exe
echo Running No.04 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:5
cd 05
start /min ..\bot\NecroBot.exe
echo Running No.05 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:6
cd 06
start /min ..\bot\NecroBot.exe
echo Running No.06 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:7
cd 07
start /min ..\bot\NecroBot.exe
echo Running No.07 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:8
cd 08
start /min ..\bot\NecroBot.exe
echo Running No.08 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:9
cd 09
start /min ..\bot\NecroBot.exe
echo Running No.09 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
:10
cd 10
start /min ..\bot\NecroBot.exe
echo Running No.10 BOT
timeout /t 10000 /nobreak
taskkill /f /im NecroBot.exe > nul
cd ..
exit