start.bat 736 B

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