1. if /i "%PROCESSOR_IDENTIFIER:~0,3%"=="X86" (echo x86) ELSE echo x64