Identifying whether a system is 32 or 64 bit

Started by joebandit, May 03, 2014, 08:14:12 PM

Previous topic - Next topic

joebandit

Searching revealed no definitive answers so here goes, I have winversion telling me that 8.1 is 2-6.3 ok, but how does one tell whether the system is 32 or 64 bit other than checking to see if there exists a Program Files(x86), which I have already found isn't a viable solution as I have a program that creates a program files(x86) folder on a 32 bit system.

George Vagenas

I think this should do it.
Code (winbatch) Select
if Environment('ProgramW6432')!='' then display(5, 'Test for 64-bit','System is 64-bit')
Thanks

George

JTaylor


Deana

Local machine bitness can be determined using the WinMetrics Function.

Code (winbatch) Select
If WinMetrics(-7)|WinMetrics(-2)==3 Then Pause('Windows Bitness','64-bit Platform')
Else Pause('Windows Bitness','32-bit Platform')


Reference: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/64-bit+How~To~Check~If~Computer~Is~Running~A~32~Bit~or~64~Bit~Operating~System.txt
Deana F.
Technical Support
Wilson WindowWare Inc.

joebandit

Thanks all, I'll give a look at using one of them.