@echo off

REM Warte 1 Minute
timeout /t 60 /nobreak

:CheckMySQL
tasklist | findstr "httpd.exe mysqld.exe" | find /i "1">nul
if %errorlevel% equ 0 (
    echo MySQL läuft. Starte Python-Skript.
    cd "C:\Kasse\Counter"
    start python ReadCom.py
	start python main.py
    exit /b
) else (
    echo MySQL läuft nicht. Warte weitere 30 Sekunden...
    timeout /t 30 /nobreak
    goto CheckMySQL
)