Here a solution, which works for me however you have to be careful since it relies on a certain environment variable to be present. If this environment variable is not available the method automatically assumes the os to operate in 32 bit.
1
2
3
4
5
6
7
8
' @Author - Alexander Bolte' @ChangeDate - 2016-03-27' @Description - Determines if a users operating system is of 64 bit or 32 bit.' In a 32 bit windows operating system the environment variable "ProgramW6432" simply does not exist.' @Returns true, if the default directory for 32 bit applications is C:\Program Files (x86), else false.FunctionIs64bit()AsBooleanIs64bit=Len(Environ("ProgramW6432"))>0EndFunction
Unfortunately thie below did not work for me as it returned "x86" no matter if I started it on a 64 bit or 32 bit os.