@echo off :: ============================================================ :: LambdaAgentPaaS — Windows 一键启动(双击运行) :: 本脚本是 start.ps1 的批处理包装器 :: ============================================================ title LambdaAgentPaaS 启动器 :: 检查是否有管理员权限(Docker 有时需要) net session >nul 2>&1 if %errorLevel% neq 0 ( echo 正在以管理员权限重新启动... powershell -Command "Start-Process '%~f0' -Verb RunAs" exit /b ) :: 调用 PowerShell 脚本 set "SCRIPT_DIR=%~dp0" powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%start.ps1" %* if %errorLevel% neq 0 ( echo. echo 启动失败。按任意键退出... pause >nul )