What's the command line to find out if the OS is running a 32-bit version or 64-bit of Windows?
feedback
|
migrated from stackoverflow.com Jan 15 '10 at 5:39
This question came from our site for professional and enthusiast programmers.
|
You can get this via WMI:
Example on my system:
| |||
feedback
|
|
Command line:
example output: System type: X86-based PC X86 indicates a 32-bit system in this example. | |||||||||
feedback
|
|
Regular command line: PowerShell: | |||
|
feedback
|
|
I can not attach answer to another post so here.
Piping the result of Even with the Probably the "wmic" method is the most reliable - it asks the os directly. Other possible quick solution can be to examine a variable (at least working on win7 at me).
Ok - it is quite long to remember but possible a Sure - some can modify a system variable so not that reliable than I hope I could help someone out. | |||
feedback
|
|
if you are referring to windows OS, you can use vbscript with WMI
| |||
|
feedback
|
|
You can find that Information using "System Information"
Under "System Summary"/ System Type you can find the OS version
JohnT's answer in GUI ;) | |||
|
feedback
|
|
Go to Start » Run and then type
| ||||
|
feedback
|