Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
1 result

start_python.bat

Blame
  • start_python.bat 399 B
    @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
    )