Files
Kur3/run_windows.bat

37 lines
656 B
Batchfile

@echo off
cd /d "%~dp0"
where git >nul 2>nul
if errorlevel 1 (
echo Git не найден. Установи Git for Windows: https://git-scm.com/download/win
pause
exit /b 1
)
where pyw >nul 2>nul
if not errorlevel 1 (
start "" pyw -3 "%~dp0main.py"
exit /b 0
)
where pythonw >nul 2>nul
if not errorlevel 1 (
start "" pythonw "%~dp0main.py"
exit /b 0
)
where py >nul 2>nul
if not errorlevel 1 (
py -3 "%~dp0main.py"
exit /b 0
)
where python >nul 2>nul
if not errorlevel 1 (
python "%~dp0main.py"
exit /b 0
)
echo Python не найден. Установи Python 3: https://www.python.org/downloads/
pause