Detect 64bit OS (判斷64bit作業系統)

IF @ProcessorArch = "X64" Then
    Msgbox(0,"Demo","X64")
Else
    Msgbox(0,"Demo","X86")
EndIf
EXIT

How to detect a 64-Bit OS - General Help and Support - AutoIt Forums