Added servers updating options

This commit is contained in:
Vladislav Salikov
2024-11-11 19:12:05 +03:00
parent acdcf23a1b
commit a8a061464f
4 changed files with 188 additions and 127 deletions

View File

@@ -1,5 +1,10 @@
@echo off
set scriptPath=%~dp0
set customPath=D:\DayZ\Server\.customs
cd /d %scriptPath%
pushd %scriptPath%
set update=0
if "%1" equ "/U" set update=1
if "%1" equ "/u" set update=1
@@ -7,6 +12,11 @@ if "%1" equ "-U" set update=1
if "%1" equ "-u" set update=1
if "%1" equ "--update" set update=1
cd /d %scriptPath%
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update%
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% > wDayzManager.log
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update%
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% > wDayzManager.log
@REM echo Customization...
@REM cd /d %customPath%
@REM copy /Y messages.xml d:\dayz\server\mpmissions\hardcore.namalsk\db
popd