-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecutar.bat
More file actions
32 lines (28 loc) · 858 Bytes
/
Copy pathexecutar.bat
File metadata and controls
32 lines (28 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
:: VideoFrameExtractor — Inicializador
:: pushd mapeia automaticamente UNC para letra de drive temporaria
title VideoFrameExtractor
pushd "%~dp0"
if exist VideoFrameExtractor.exe (
VideoFrameExtractor.exe
set EXIT_CODE=%errorlevel%
) else (
where python >nul 2>nul
if errorlevel 1 (
echo Python nao encontrado no PATH. Instale Python 3.10 ou superior, ou use o executavel compilado VideoFrameExtractor.exe.
pause
popd
exit /b 1
)
python -c "import sys" >nul 2>nul
if errorlevel 1 (
echo Python nao configurado corretamente [alias da Microsoft Store ativo ou erro]. Instale Python 3.10+ ou use o executavel VideoFrameExtractor.exe.
pause
popd
exit /b 1
)
python bootstrapper.py
set EXIT_CODE=%errorlevel%
)
popd
if %EXIT_CODE% neq 0 pause