Find CPU family

  • Thread starter Thread starter source
  • Start date Start date
S

source

Is there a way I can find what CPU my application is running on?
I am trying to find if the CPU is a 64bit or 32bit.
Is there an API exposed in the framework?
Any help will be helpful.

thank you,
source
 
Hello source,

See there http://www.pcreview.co.uk/forums/thread-531685.php

Where are you going to use it?

s> Is there a way I can find what CPU my application is running on?
s> I am trying to find if the CPU is a 64bit or 32bit.
s> Is there an API exposed in the framework?
s> Any help will be helpful.
s> thank you,
s> source
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Now I am trying to script using winmanagment object model and I wanted to
find out that how do I make a script return a value
or if not then can it raise and error
so that

System.Diagnostics.Process.Exitcode can be anything other than 0
So if the DiagProcess returns a non zero value I will be able to make a
decision
Any pointers will help.

source
 
It's generally better if you ask this question once and post it to multiple
groups at the same time rather than post the same question repeatedly in
different groups.
 
Hello source,

You need understand that if you are working on 64bit CPU and windows in 32bit
that you can't detect 64bit CPU with WMI,
coz it's platform specific. You can type wmic.exe then type "cpu" in console
window to test it


s> Now I am trying to script using winmanagment object model and I
s> wanted to
s> find out that how do I make a script return a value
s> or if not then can it raise and error
s> so that
s> System.Diagnostics.Process.Exitcode can be anything other than 0
s> So if the DiagProcess returns a non zero value I will be able to make
s> a
s> decision
s> Any pointers will help.
s> source
s>
s> s>---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Back
Top