If you need to run different commands depending if the OS is 32 Bit or 64 Bit, you can insert the code below into your script.
REM Check OS architecture
ECHO %processor_architecture% | FIND "x64"
IF ERRORLEVEL 1 (GOTO 64BIT) ELSE (GOTO 32BIT)
:64BIT
Insert your 64 Bit commands here
GOTO EXIT
:32BIT
Insert your 32 Bit commands here
GOTO EXIT
:EXIT
exit
Comments
Post a Comment