-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART.bat
More file actions
30 lines (26 loc) · 949 Bytes
/
Copy pathSTART.bat
File metadata and controls
30 lines (26 loc) · 949 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
@echo off
setlocal EnableExtensions
cd /d "%~dp0"
set "PROFILER_EXE=%~dp0ProFiler.exe"
set "PROFILER_SHA=%~dp0ProFiler.exe.sha256"
if exist "%PROFILER_EXE%" if exist "%PROFILER_SHA%" (
for /f "usebackq tokens=1" %%H in ("%PROFILER_SHA%") do set "EXPECTED_SHA=%%H"
for /f "delims=" %%H in ('powershell.exe -NoProfile -Command "(Get-FileHash -Algorithm SHA256 -LiteralPath $env:PROFILER_EXE).Hash"') do set "ACTUAL_SHA=%%H"
if /I "%EXPECTED_SHA%"=="%ACTUAL_SHA%" (
start "" "%PROFILER_EXE%"
exit /b 0
)
echo [FEHLER] ProFiler.exe stimmt nicht mit ProFiler.exe.sha256 überein.
exit /b 1
)
if exist "%~dp0Profiler_Suite_V15.py" (
python --version >nul 2>&1
if errorlevel 1 (
echo [FEHLER] Python wurde nicht gefunden.
exit /b 1
)
python "%~dp0Profiler_Suite_V15.py"
exit /b %errorlevel%
)
echo [FEHLER] Kein verifiziertes EXE-Paar und keine V15-Quelle gefunden.
exit /b 1