What's the command line to find out if the OS is running a 32-bit version or 64-bit of Windows?
|
migrated from stackoverflow.com Jan 15 '10 at 5:39
|
You can get this via WMI:
Example on my system:
|
|||
|
Command line:
example output: System type: X86-based PC X86 indicates a 32-bit system in this example. |
|||||||||
|
|
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. |
|||
|
|
Regular command line: PowerShell: |
|||
|
|
|
I could not find the Running the command
|
||||
|
|
|
if you are referring to windows OS, you can use vbscript with WMI
|
|||
|
|
|
You can find that Information using "System Information"
Under "System Summary"/ System Type you can find the OS version
JohnT's answer in GUI ;) |
|||
|
|
|
Go to Start » Run and then type
|
|||||
|
|
There are numerous ways to check the processor architecture under Windows:
These methods can be combined in a single batch-file (e.g., The batch-file below was tested on 32-bit and Intel 64-bit systems (please test on AMD64), giving correct results in <1 second:
|
||||
|
|
