Sunday, 18 August 2013

Windows CLI Hacks

[1] know OS  version : 32 bit or 64 bit
C:/>wmic os get osarchitecture
OSArchitecture
32bit

OR simply check the PROCESSOR_ARCHITECTURE environment variable
C:\>echo %PROCESSOR_ARCHITECTURE%


References

http://superuser.com/a/359655/107419