Arma Reforger – How to Restart/Start.bat

Arma Reforger – How to Restart/Start.bat 1 - steamlists.com
Arma Reforger – How to Restart/Start.bat 1 - steamlists.com

1. ~ create a Start.bat
 
2. ~ Put this Code in the Start.bat
 
**********************************************************************************
 
 
@echo off
 
TITLE ArmaReforger Server – Status
 
COLOR 0A
 
:: DEFINE the following variables where applicable to your install
 
SET SteamLogin=anonymous anonymous
 
SET ArmaReforgerBranch=1874900
 
SET ArmaReforgerServerPath=”C:\Users\Administrator\Desktop\ArmaReforger”
 
SET SteamCMDPath=”C:\Users\Administrator\Desktop\ArmaReforger\STEAM”
 
SET ConfigFolder=”C:\Users\Administrator\Desktop\ArmaReforger\Config”
 
:: _______________________________________________________________
 

 
goto checkServer
 
pause
 

 
:checkServer
 
tasklist /fi “imagename eq ArmaReforgerServer.exe” 2>NUL | find /i /n “ArmaReforgerServer.exe”>NUL
 
cls
 
echo Server is not running, taking care of it..
 
goto killServer
 
 

 
:loopServer
 
FOR /L %%s IN (30,-1,0) DO (
 
cls
 
echo Server is running. Checking again in %%s seconds..
 
timeout 1 >nul
 
)
 
goto checkServer
 
:killServer
 
taskkill /f /im ArmaReforgerServer.exe
 
goto updateServer
 

 
:updateServer
 
cls
 
echo Updating ArmA Reforger Server.
 
timeout 1 >nul
 
cls
 
echo Updating ArmA Reforger Server..
 
timeout 1 >nul
 
cls
 
echo Updating ArmA Reforger Server…
 
echo.
 
echo Checking for ArmA Reforger server update
 
echo ArmA Reforger Server Dir: %ReforgerServerPath%
 
echo SteamCMD Dir: %SteamCMDPath%
 
echo Config Dir: %ConfigFolder%
 
echo.
 
cd “%SteamCMDPath%”
 
start /wait steamcmd.exe +login %SteamLogin% +force_install_dir %ArmaReforgerServerPath% +”app_update %ArmaReforgerBranch%” +quit
 
goto startServer
 

 
:startServer
 
cls
 
echo Starting ArmA Reforger Server.
 
timeout 1 >nul
 
cls
 
echo Starting ArmA Reforger Server..
 
timeout 1 >nul
 
cls
 
echo Starting ArmA Reforger Server…
 
cd “%ArmaReforgerServerPath%”
 
start ArmaReforgerServer.exe -config %ConfigFolder%\config.json
 
FOR /l %%s IN (10800,-1,0) DO (
 
cls
 
echo Server will be restarted in %%s seconds
 
timeout 1 >nul
 
)
 
 
goto checkServer
 
 
**********************************************************************************
 
 
3. ~ changes this line to your directory
 
 
SET ArmaReforgerServerPath=”C:\Users\Administrator\Desktop\ArmaReforger”
 
SET SteamCMDPath=”C:\Users\Administrator\Desktop\ArmaReforger\STEAM”
 
SET ConfigFolder=”C:\Users\Administrator\Desktop\ArmaReforger\Config”
 
 
4. ~ Launch the Start.bat
 
 
INFO:
 
***************************************************************
 
 
FOR /l %%s IN (10800,-1,0) DO (
 
cls
 
echo Server will be restarted in %%s seconds
 
timeout 1 >nul
 
 
***************************************************************
 
the Number “10800” is the restart timer! = 10800 seconds = 3 hours !
 
 

 
 

Written by Gromow

 
 
This is all about Arma Reforger – How to Restart/Start.bat; I hope you enjoy reading the Guide! If you feel like we should add more information or we forget/mistake, please let us know via commenting below, and thanks! See you soon!
 
 


Be the first to comment

Leave a Reply

Your email address will not be published.


*