Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- TITLE DayZ SA Server - Status
- COLOR 0A
- :: DEFINE las siguientes variables cuando corresponda a su instalación
- SET DayZServerPath="C:\DZServer"
- SET BECPath="C:\BEC"
- :: _______________________________________________________________
- goto checkServer
- pause
- :checkServer
- tasklist /fi "imagename eq DayZServer_x64.exe" 2>NUL | find /i /n "DayZServer_x64.exe">NUL
- if "%ERRORLEVEL%"=="0" goto checkBEC
- cls
- echo El servidor no se está ejecutando, chekeando...
- goto killServer
- :checkBEC
- tasklist /fi "imagename eq BEC.exe" 2>NUL | find /i /n "BEC.exe">NUL
- if "%ERRORLEVEL%"=="0" goto loopServer
- cls
- echo Bec no se está ejecutando, chekeando...
- goto startBEC
- :loopServer
- FOR /L %%s IN (30,-1,0) DO (
- cls
- echo Servidor activo, chekeando en %%s segundos..
- timeout 1 >nul
- )
- goto checkServer
- :killServer
- taskkill /f /im Bec.exe
- taskkill /f /im DayZServer_x64.exe
- taskkill /f /im DZSALModServer.exe
- goto startServer
- :startServer
- cls
- echo Iniciando Servidor.
- timeout 1 >nul
- cls
- echo Iniciando Servidor..
- timeout 1 >nul
- cls
- echo Iniciando Servidor...
- cd "%DayZServerPath%"
- start DZSALModServer.exe -instanceId=1 -config=serverDZ.cfg -profiles=ServerProfiles -port=2302 -mod=@CF;@CommunityOnlineTools -cpuCount=8 -noFilePatching -dologs -adminlog -freezecheck
- FOR /l %%s IN (45,-1,0) DO (
- cls
- echo Iniciando Servidor, espere %%s segundos para iniciar BEC..
- timeout 1 >nul
- )
- goto startBEC
- :startBEC
- cls
- echo Iniciando BEC.
- timeout 1 >nul
- cls
- echo Iniciando BEC..
- timeout 1 >nul
- cls
- echo Iniciando BEC...
- timeout 1 >nul
- cd "%BECPath%"
- start Bec.exe -f Config.cfg --dsc
- goto checkServer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement