Set RegQry=HKLM\Hardware\Description\System\CentralProcessor\0 REG.exe Query %RegQry% > checkOS.txt Find /i "x86" < CheckOS.txt > StringCheck.txt If %ERRORLEVEL% == 0 ( goto 32 echo youre a 32 bit fag ) ELSE ( goto 64 echo youre a 64 bit fag ) del /f /q "checkOS.txt" >nul del /f /q "StringCheck.txt" >nul