@echo off

Echo Starting BAO
IF %PROCESSOR_ARCHITECTURE% == x86 (IF NOT DEFINED PROCESSOR_ARCHITEW6432 goto bit32)
goto bit64
:bit32
start "" "%~dp0Tools\AutoIt3.exe" "%~dp0BAO.a3x"
goto cont
:bit64
start "" "%~dp0Tools\AutoIt3_x64.exe" "%~dp0BAO_x64.a3x"
:end