@echo off setlocal cd /d "%~dp0" python main.py if errorlevel 1 ( echo. echo TomatoPick failed to start or exited with an error. echo Working directory: %CD% echo. pause )