Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::MAKE SURE ALL TASKS ARE REALLY STOPPED
- taskkill /f /fi "status eq not responding" /im arma3server.exe
- taskkill /f /im arma3server.exe
- timeout 1
- ::IF YOU PLAY ON SAME PC AS SERVER, SOMETIMES RESTARTS GET HUNG UP BECAUSE OF IT SO MAKE SURE TO KILL CLIENTSIDE TOO, I DONT, BUT JUST IN CASE YOU DO
- taskkill /f /fi "status eq not responding" /im arma3.exe
- taskkill /f /im arma3.exe
- timeout 1
- :: KILL BATTLEYE IF IT ISN'T ALREADY
- taskkill /im Bec.exe
- ::SHUTDOWN SERVERMONITOR IF IT IS ALREADY RUNNING - WE RESTART IT AT THE END OF THIS
- taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat
- echo Make sure all is clear
- echo Restarting Battleye
- ::RESTARTING BATTLEYE
- set becpath="D:\Games\Servers\exile\bec"
- cd %becpath%
- start "" /min "Bec.exe" -f Config.cfg
- timeout 3
- echo Battleye has started..
- echo.
- echo.
- echo Starting ARMA 3 Server...
- ::RESTARTING THE ARMA 3 SERVER BE SURE TO EDIT THIS TO YOUR SERVER .EXE LOCATION -NOTE ALSO THIS IS WHERE YOU DEFINE WHERE YOU CONFIG.CFG IS
- cd D:\Games\Servers\exile
- timeout 3
- start "Arma 3" /min /wait arma3server.exe -mod=@exile; -servermod=@exileserver; -config=@ExileServer\config.cfg -port=2302 -profiles=SC -cfg=@ExileServer\basic.cfg -name=SC -autoinit -enableHT
- timeout 6
- echo ARMA 3 Server has started
- :: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET
- set ServerMonitorPath="D:\Games\Servers\exile"
- cd /d %ServerMonitorPath%
- start "" "servermonitor.bat"
- echo Server Monitor has started. Have Fun
- timeout 5
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement