We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d2e23 commit dff180dCopy full SHA for dff180d
amdocl.bat
@@ -120,12 +120,16 @@ for /r %%f in (amdocl*dll) do (
120
if "%%~nxf"=="%%A" (
121
echo Found: !FILE!
122
123
- set FILE_BIT=!FILE:~-7,-5!
124
-
125
- if !FILE_BIT! == 64 (
+ echo !FILE! | findstr /C:"_amd64_" >nul
+ if !ERRORLEVEL! == 0 (
126
set "ROOTKEY=!ROOTKEY64!"
127
) else (
128
- set "ROOTKEY=!ROOTKEY32!"
+ set FILE_BIT=!FILE:~-7,-5!
+ if !FILE_BIT! == 64 (
129
+ set "ROOTKEY=!ROOTKEY64!"
130
+ ) else (
131
+ set "ROOTKEY=!ROOTKEY32!"
132
+ )
133
)
134
135
reg query !ROOTKEY! >nul 2>&1
0 commit comments