Advertisement
tinboye

serverrestart.bat

Apr 13th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. @echo off
  2. ::MAKE SURE ALL TASKS ARE REALLY STOPPED
  3.  
  4. taskkill /f /fi "status eq not responding" /im arma3server.exe
  5. taskkill /f /im arma3server.exe
  6. timeout 1
  7.  
  8. ::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
  9.  
  10. taskkill /f /fi "status eq not responding" /im arma3.exe
  11. taskkill /f /im arma3.exe
  12. timeout 1
  13.  
  14. :: KILL BATTLEYE IF IT ISN'T ALREADY
  15. taskkill /im Bec.exe
  16.  
  17. ::SHUTDOWN SERVERMONITOR IF IT IS ALREADY RUNNING - WE RESTART IT AT THE END OF THIS
  18. taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat
  19. echo Make sure all is clear
  20.  
  21. echo Restarting Battleye
  22.  
  23. ::RESTARTING BATTLEYE
  24. set becpath="D:\Games\Servers\exile\bec"
  25. cd %becpath%
  26. start "" /min "Bec.exe" -f Config.cfg
  27. timeout 3
  28. echo Battleye has started..
  29. echo.
  30. echo.
  31. echo Starting ARMA 3 Server...
  32.  
  33. ::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
  34. cd D:\Games\Servers\exile
  35. timeout 3
  36. 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
  37. timeout 6
  38. echo ARMA 3 Server has started
  39.  
  40. :: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET
  41. set ServerMonitorPath="D:\Games\Servers\exile"
  42. cd /d %ServerMonitorPath%
  43. start "" "servermonitor.bat"
  44. echo Server Monitor has started. Have Fun
  45. timeout 5
  46. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement