@echo off
set APPDIR=%APPDATA%\WMS-PrintAgent
if not exist "%APPDIR%\print_agent.py" (
    echo Агент не найден. Используйте полную установку.
    pause & exit /b 1
)
taskkill /f /im pythonw.exe /fi "WINDOWTITLE eq WMS*" >nul 2>&1
start "" pythonw "%APPDIR%\print_agent.py"
timeout /t 2 >nul
