Files
WinServer_Install_DayZServer/双击安装.bat
2025-07-22 18:30:21 +08:00

18 lines
392 B
Batchfile

@echo off
setlocal enabledelayedexpansion
:: 设置账号密码(实际使用时可替换为真实凭证)
set "STEAM_USER=your_username"
set "STEAM_PASS=your_password"
:: 调用PowerShell脚本并传递参数
powershell.exe -ExecutionPolicy Bypass -File "%~dp0install.ps1" ^
-SteamUser "!STEAM_USER!" ^
-SteamPass "!STEAM_PASS!"
:: 安全擦除内存中的凭证
set "STEAM_USER="
set "STEAM_PASS="
endlocal
pause
exit