What's the best and quickest way to detect whether you're running a 32 or 64-bit version of Windows Server from the command line?
(Cygwin is installed)
|
What's the best and quickest way to detect whether you're running a 32 or 64-bit version of Windows Server from the command line? (Cygwin is installed)
| ||||
|
feedback
|
|
A slightly quicker way would be to check for the existence of the %ProgramFiles(x86)% directory. If it exists then you're running 64-bit, if it doesn't exist then you're running 32-bit. Quick one-liner:
That will output You can also use the find tool to have a more accurate way to determine bitness.
or using the
(included the | |||||||||
feedback
|
It will list quite a bit, about 10 fields down there is one called System Type. This will tell you if it's x86 or x64 | |||
|
feedback
|
|
How about:
This will return x86 on 32-bit systems and AMD64 (or IA64) on 64-bit systems. | |||||||||
feedback
|
|
Although this is not the ideal answer, and The command:
With the correct changes to the registry query and search string you can also check for operating system versions as far back as Windows 95. | ||||
feedback
|
This is locale dependent, and slow.
Notice, that it's x86 in 32-bit Correct way:
| |||
feedback
|