Papahyooie
New Member
I cannot seem to get a batch file to work to restart both of my servers running on the same machine.
One server is running on port 2312, the other on 2350. When I run my batch file (or trigger it with BEC) it always hangs up somewhere in between. It starts one or the other server, it may start both servers, BEC may not start on one of more of the servers... I can't figure out what's up. Here is the script I'm trying (it has gone through several revisions to try to fix it...)
taskkill /im arma2oaserver.exe
taskkill /f /im bec.exe
taskkill /im arma2oaserver.exe
taskkill /f /im bec.exe
timeout 10
:: start the server..
set dayzpath="E:\BattleBorne Epoch"
cd /d %dayzpath%
start "arma2" /min "arma2oaserver.exe" -port=2312 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
timeout 30
:: start the server..
set dayzpath="E:\BattleBornePVPUtes"
cd /d %dayzpath%
start "arma2" /min "arma2oaserver.exe" -port=2350 "-config=instance_2_utes\config.cfg" "-cfg=instance_2_utes\basic.cfg" "-profiles=instance_2_utes" -name=instance_2_utes "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
timeout 160
:: start bec
set becpath="C:\Users\Nick\Desktop\Bec2"
cd /d %becpath%
start "StartBEC" "startbec.bat"
timeout 10
:: start bec
set becpath="C:\Users\Nick\Desktop\Bec"
cd /d %becpath%
start "StartBEC" "startbec.bat"
timeout 3
cls
@exit
....
Thanks guys. Any help would be appreciated!
One server is running on port 2312, the other on 2350. When I run my batch file (or trigger it with BEC) it always hangs up somewhere in between. It starts one or the other server, it may start both servers, BEC may not start on one of more of the servers... I can't figure out what's up. Here is the script I'm trying (it has gone through several revisions to try to fix it...)
taskkill /im arma2oaserver.exe
taskkill /f /im bec.exe
taskkill /im arma2oaserver.exe
taskkill /f /im bec.exe
timeout 10
:: start the server..
set dayzpath="E:\BattleBorne Epoch"
cd /d %dayzpath%
start "arma2" /min "arma2oaserver.exe" -port=2312 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
timeout 30
:: start the server..
set dayzpath="E:\BattleBornePVPUtes"
cd /d %dayzpath%
start "arma2" /min "arma2oaserver.exe" -port=2350 "-config=instance_2_utes\config.cfg" "-cfg=instance_2_utes\basic.cfg" "-profiles=instance_2_utes" -name=instance_2_utes "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
timeout 160
:: start bec
set becpath="C:\Users\Nick\Desktop\Bec2"
cd /d %becpath%
start "StartBEC" "startbec.bat"
timeout 10
:: start bec
set becpath="C:\Users\Nick\Desktop\Bec"
cd /d %becpath%
start "StartBEC" "startbec.bat"
timeout 3
cls
@exit
....
Thanks guys. Any help would be appreciated!