Files
kefu/启动企微客服助手.cmd
T
2026-09-21 10:34:06 +08:00

20 lines
413 B
Batchfile

@echo off
setlocal
set "PROJECT_ROOT=%~dp0wechat_rpa"
set "PROJECT_PYTHON=%PROJECT_ROOT%\.venv\Scripts\python.exe"
if not exist "%PROJECT_PYTHON%" (
echo [ERROR] Project Python was not found: %PROJECT_PYTHON%
echo Please rebuild the environment under wechat_rpa\.venv first.
pause
exit /b 1
)
pushd "%PROJECT_ROOT%"
"%PROJECT_PYTHON%" app_main.py
set "EXIT_CODE=%ERRORLEVEL%"
popd
exit /b %EXIT_CODE%