24 lines
663 B
Batchfile
24 lines
663 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
REM Get the directory of the script (used to build the path to the correct exe)
|
|
set "SCRIPT_DIR=%~dp0"
|
|
|
|
REM Determine architecture (handles 32-bit cmd on 64-bit Windows)
|
|
set "ARCH=%PROCESSOR_ARCHITECTURE%"
|
|
if defined PROCESSOR_ARCHITEW6432 set "ARCH=%PROCESSOR_ARCHITEW6432%"
|
|
|
|
REM Normalize to lowercase-ish values
|
|
if /I "%ARCH%"=="AMD64" (
|
|
set "TARGET_EXE=%SCRIPT_DIR%..\ViVeTool\IntelAMD\ViVeTool.exe"
|
|
) else if /I "%ARCH%"=="ARM64" (
|
|
set "TARGET_EXE=%SCRIPT_DIR%..\ViVeTool\Snapdragon\ViVeTool.exe"
|
|
) else (
|
|
echo Unsupported architecture: %ARCH%
|
|
exit /b 1
|
|
)
|
|
|
|
REM Run exe with all passed arguments
|
|
"%TARGET_EXE%" %*
|
|
|
|
endlocal |