@echo off rem ============================================================ rem viewsagent one-click build rem Double-click this file to build viewsagent.exe in this folder. rem (Chinese output is printed by build.ps1, this file stays ASCII.) rem ============================================================ setlocal chcp 65001 >nul cd /d "%~dp0" title viewsagent - build echo. echo Building viewsagent ... echo. powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0build.ps1" %* set RC=%ERRORLEVEL% echo. if not "%RC%"=="0" ( echo [FAILED] Build did not succeed. See the messages above. ) else ( echo [DONE] viewsagent.exe is ready in this folder. echo Double-click it to run. ) echo. pause exit /b %RC%