Added "Init" parameter for future use.

This commit is contained in:
2024-12-24 12:40:00 +03:00
parent baefe7b866
commit 046b156396
2 changed files with 23 additions and 12 deletions

View File

@@ -21,14 +21,13 @@ pushd %scriptPath%
if not exist "Logs\" mkdir "Logs"
set init=0
set update=0
if "%1" equ "/U" set update=1
if "%1" equ "/u" set update=1
if "%1" equ "-U" set update=1
if "%1" equ "-u" set update=1
if "%1" equ "--update" set update=1
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update%
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% > Logs\%filename%
for %%a in (%*) do if /i "%%~a" equ "/I" set init=1
for %%a in (%*) do if /i "%%~a" equ "/U" set update=1
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 -Init %init% -Update %update%
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 -Init %init% -Update %update% > Logs\%filename%
popd