@echo off
Color 1F
pushd %~dp0
rem 32-bit version of SDI works BOTH on 32-bit and 64-bit Windows.
rem 64-bit version of SDI works ONLY on 64-bit Windows.
rem EXECEPTION: 32-bit version of SDI cannot run on Windows PE x64.
rem 64-bit version is faster and doesn't have the 2GB RAM per process limitation.
title=Start Snappy Driver Installer
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" (set ARCH=x86) else (set ARCH=x64)
if "%ARCH%"=="x86" goto :32bit
if "%ARCH%"=="x64" goto :64bit
:32bit
echo 32-bit
set xOS="R"
goto cont
:64bit
echo 64-bit
set xOS="x64_R"
:cont
for /f "tokens=*" %%a in ('dir /b /od "%~dp0SDI_%xOS%*.exe"') do set "SDIEXE=%%a"
if exist "%~dp0%SDIEXE%" (
start "Snappy Driver Installer" /d"%~dp0" "%~dp0%SDIEXE%" -Autoinstall -Autoclose
exit
) else (
echo.
echo Not found 'Snappy Driver Installer'!
echo.
timeout 6
exit
)
:ex
'유용한 배치파일' 카테고리의 다른 글
AnyDesk 잔존파일 삭제 (15) | 2022.06.18 |
---|---|
진행 바 (Progress bar) (6) | 2022.03.18 |
윈도우가 설치된 파티션 찾기 (2) | 2022.02.21 |
Wim 파일 추출 (1) | 2022.01.05 |
모든드라이브 하위까지 특정파일 삭제 (1) | 2021.12.24 |