fix: add chcp 65001 and .venv check to startup scripts

This commit is contained in:
2026-05-23 09:15:44 +08:00
parent 751df5c4a9
commit 40adf50702
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -1,10 +1,18 @@
@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion
echo ================================================
echo agent_jrxml 启动 (API + 验证)
echo ================================================
cd /d "%~dp0"
:: 环境检查
if not exist "%~dp0.venv\Scripts\python.exe" (
echo [错误] 未找到 .venv,请先创建虚拟环境
pause
exit /b 1
)
:: 清理残留进程
echo [清理] 检查残留进程...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8000.*LISTENING"') do (