# batch file help

• First Blood
• Posts: 79

## batch file help

« posted: Jul 02, 2016, 07:18 AM »
i am currently running the following bat file to start my dedi server and servermonitor.bat.
Code: [Select]
`@echo offtaskkill /f /fi "status eq not responding" /im arma3server.exetaskkill /f /im arma3server.exetimeout 1taskkill /f /fi "status eq not responding" /im arma3.exetaskkill /f /im arma3.exetimeout 1taskkill /im Bec.exetaskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat"timeout 2echo Kill all instances for safetytimeout 6::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATIONset becpath="C:\Games\ArmA3\A3Master\A3DS\profiles\BattlEye\"cd /d %becpath%start "" /min "Bec.exe" -f Config.cfgtimeout 1echo Battleye has started.. timeout 1echo Starting ARMA 3 Stratis Server...::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATIONcd "C:\Games\ArmA3\A3Master\" start "" /HIGH /affinity 11 /min /wait "C:\Games\ArmA3\A3Master\arma3server.exe" -noPause -noSound -cpuCount=4 -maxMem=2048 -exThreads=7 -cfg=A3DS\basic.cfg -config=A3DS\server.cfg -profiles=A3DS\Profiles -servermod= -mod=@infiSTAR_A3;@asm; -filePatching -noLogs -world=empty -autoinit -loadMissionToMemoryecho Server started succesfullytimeout 5echo ARMA 3 Stratis Server has started::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATIONset ServerMonitorPath="C:\Games\ArmA3\A3Master\A3DS\profiles\"cd /d %ServerMonitorPath%start "" "servermonitor.bat"echo Server Monitor has started. Have Funtimeout 3exit`my question is, can i use this same bat to start multiple servers, and if so, how?
thanks

## Re: batch file help

« Reply #1 posted: Jul 03, 2016, 04:23 AM »
just rename arma3server.exe to another thing. then you will use differents executable to each server