@echo OFF setlocal reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set BIT=32BIT || set BIT=64BIT if "%BIT%"=="32BIT" ("%~dp0spearmint\spearmint_x86.exe") else ("%~dp0spearmint\spearmint_x86_64.exe")