Advertisement
secondcoming

Untitled

May 9th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.73 KB | None | 0 0
  1. @echo off
  2.  
  3. ::=====================================================================================================================================
  4. :: close the running apps
  5. ::=====================================================================================================================================
  6.  
  7. taskkill /IM arma3server.exe /f /t
  8. taskkill /IM ArmaServerMonitor.exe /f /t
  9. taskkill /IM Bec.exe /f /t
  10.  
  11. ::=====================================================================================================================================
  12. :: Database Housekeeping backup & clean
  13. ::=====================================================================================================================================
  14. C:\xampp\php\php.exe C:\xampp\htdocs\scheduled\exile_cleanup.php
  15.  
  16. timeout 2
  17.  
  18. :: Move old log files
  19. move F:\a3server\SC\*.log F:\a3server\SC\old
  20. move F:\a3server\SC\*.rpt F:\a3server\SC\old
  21. move F:\a3server\SC\*.bidmp F:\a3server\SC\old
  22. move F:\a3server\SC\*.mdmp F:\a3server\SC\old
  23.  
  24. :: Delete the .Arma3Profile file
  25. del "F:\A3server\SC\Users\SC\SC.vars.Arma3Profile" /F /Q
  26.  
  27. ::=====================================================================================================================================
  28. :: Update the Binaries and DLLs
  29. ::=====================================================================================================================================
  30. xcopy "F:\updates\BinaryUpdate\arma3server.exe" "F:\A3server\arma3server.exe" /Y
  31. xcopy "F:\updates\BinaryUpdate\*.dll" "F:\A3server\" /Y
  32. xcopy "F:\updates\extDB2.dll" "F:\A3server\@ExileServer\extDB2.dll" /Y
  33.  
  34. timeout 2
  35.  
  36. ::=====================================================================================================================================
  37. ::Copy updates to live folders before restarting server
  38. ::=====================================================================================================================================
  39.  
  40. xcopy "F:\updates\exile.ini" "F:\A3server\@ExileServer\extDB\sql_custom_v2\exile.ini" /Y
  41. xcopy "F:\updates\exile.bikey" "F:\A3server\keys\exile.bikey" /Y
  42. xcopy "F:\updates\exile_server.pbo" "F:\A3server\@ExileServer\addons\exile_server.pbo" /Y
  43. xcopy "F:\updates\exile_server_config_chernarus.pbo" "F:\A3server\@ExileServer\addons\exile_server_config.pbo" /Y
  44.  
  45. ::=====================================================================================================================================
  46. ::Map Specific
  47. ::=====================================================================================================================================
  48.  
  49. xcopy "F:\updates\Exile.Chernarus.pbo" "F:\A3server\MPMissions\Exile.Chernarus.pbo" /Y
  50. xcopy "F:\updates\Exile.Chernarus.pbo" "C:\Users\Richard\AppData\Local\Arma 3\MPMissionsCache\Exile.Chernarus.pbo" /Y
  51.  
  52. ::=====================================================================================================================================
  53. :: InfiStar
  54. ::=====================================================================================================================================
  55.  
  56. xcopy "F:\updates\infiSTAR\a3_infiSTAR_Exile.pbo" "F:\A3server\@infiSTAR_servermod\addons\a3_infiSTAR_Exile.pbo" /Y
  57. xcopy "F:\updates\infiSTAR\*.dll" "F:\A3server\" /Y
  58.  
  59. ::=====================================================================================================================================
  60. :: Battleye Filters
  61. ::=====================================================================================================================================
  62.  
  63. xcopy "F:\updates\battleye\*.txt" "F:\A3server\SC\BattlEye\" /Y
  64.  
  65. ::=====================================================================================================================================
  66.  
  67. xcopy "F:\updates\config.cfg" "F:\A3server\SC\config.cfg" /Y
  68. xcopy "F:\updates\basic.cfg" "F:\A3server\SC\basic.cfg" /Y
  69.  
  70. xcopy "F:\updates\SC.Arma3Profile" "F:\A3server\SC\Users\SC\SC.Arma3Profile" /Y
  71. xcopy "F:\updates\Scheduler.xml" "F:\A3server\BEC\Config\Scheduler.xml" /Y
  72.  
  73. ::=====================================================================================================================================
  74. :: Missions and random spawns
  75. ::=====================================================================================================================================
  76.  
  77. xcopy "F:\updates\SA_AdvancedTowing.pbo" "F:\A3server\@ExileServer\addons\SA_AdvancedTowing.pbo" /Y
  78. ::del "F:\A3server\@ExileServer\addons\SA_AdvancedTowing.pbo" /F /Q
  79.  
  80. xcopy "F:\updates\Enigma_Exile_Custom.pbo" "F:\A3server\@ExileServer\addons\Enigma_Exile_Custom.pbo" /Y
  81. ::del "F:\A3server\@ExileServer\addons\Enigma_Exile_Custom.pbo" /F /Q
  82.  
  83. xcopy "F:\updates\a3_exile_yorkshire.pbo" "F:\A3server\@ExileServer\addons\a3_exile_yorkshire.pbo" /Y
  84. ::del "F:\A3server\@ExileServer\addons\a3_exile_yorkshire.pbo" /F /Q
  85.  
  86. xcopy "F:\updates\a3_exile_occupation.pbo" "F:\A3server\@ExileServer\addons\a3_exile_occupation.pbo" /Y
  87. ::del "F:\A3server\@ExileServer\addons\a3_exile_occupation" /F /Q
  88.  
  89. xcopy "F:\updates\a3_zcp_exile.pbo" "F:\A3server\@ExileServer\addons\a3_zcp_exile.pbo" /Y
  90. ::del "F:\A3server\@ExileServer\addons\a3_zcp_exile.pbo" /F /Q
  91.  
  92. xcopy "F:\updates\a3_dms.pbo" "F:\A3server\@ExileServer\addons\a3_dms.pbo" /Y
  93. ::del "F:\A3server\@ExileServer\addons\a3_dms.pbo" /F /Q
  94.  
  95. xcopy "F:\updates\asm.pbo" "F:\A3server\@ExileServer\addons\asm.pbo" /Y
  96. ::del "F:\A3server\@ExileServer\addons\asm.pbo" /F /Q
  97.  
  98. ::=====================================================================================================================================
  99. ::Start ASM
  100. ::=====================================================================================================================================
  101.  
  102. start F:\A3server\Tools\ArmaServerMonitor.exe
  103.  
  104. ::=====================================================================================================================================
  105. :: Launch the Server
  106. ::=====================================================================================================================================
  107.  
  108. :: Chernarus
  109. cd "F:\A3server
  110. start /min "arma3server" /realtime "arma3server.exe" -mod=@AllInArmaTerrainPack;@RHSAFRF;@RHSUSAF;@TRYK;@Exile; -serverMod=@ExileServer;@infiSTAR_servermod; -bepath=F:\A3server\SC\BattlEye\ -port=2302 -maxMem=3072 -enableHT -loadmissiontomemory -profiles=SC -name=SC "-config=SC\config.cfg" "-cfg=SC\basic.cfg" -autoinit
  111.  
  112. timeout 20
  113.  
  114. ::=====================================================================================================================================
  115. :: start BEC
  116. ::=====================================================================================================================================
  117.  
  118. cd "F:\A3server\BEC\"
  119. start /min Bec.exe -f Config.cfg
  120.  
  121. @exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement