Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem ___________________
- rem BEGIN CONFIGURATION
- rem ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- rem Location to directory containing steamcmd.exe
- set SteamCMD_Dir=C:\steamcmd
- rem Location to directory that the Server will be installed in
- set Server_Dir=C:\citadel
- rem Server Executable
- set Server_Executable=CitadelServer-Win64-Shipping.exe
- rem Text File for update log
- set Text_File=Citadel.txt
- rem Steam APP ID
- set Steam_ID=489650
- rem ________________
- rem BEGIN BATCH CODE
- rem ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- cls
- @echo off
- title Citadel Auto Updater v1.3 by Gaxon
- :start
- color 0E
- echo.
- echo Checking For Update
- echo.
- echo DO NOT CLOSE WINDOW
- echo.
- start "" /w /b /wait "%SteamCMD_Dir%\steamcmd.exe" +login anonymous +force_install_dir "%Server_Dir%" +app_update %Steam_ID% +quit>%Server_Dir%\%Text_File%
- Type %Server_Dir%\%Text_File%
- Find "already up to date." %Server_Dir%\%Text_File%
- if ERRORLEVEL=1 goto kill
- if ERRORLEVEL=0 goto update
- :update
- color 0A
- echo.
- echo Auto Update Running
- timeout /t 900
- goto start
- :kill
- color 0C
- echo.
- echo UPDATE FOUND, RESTARTING SERVER
- timeout /t 30
- echo CTRL + C to Pause shutdown
- taskkill /im "%Server_Executable%" /f /t
- goto update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement