07-21-2009 08:06 PM - edited 07-21-2009 08:09 PM
Hi all, according to the project needs, I to know how to detect OS version and the hardware info.
The point is to detect client's OS version, weather Win98, 2000, XP, Vista.
I have been search the information for several days already.
But can not really found a example which returns the OS version like"Windows XP Version 2002 *****".
And also could not find the CPU type such as"Core 2 due, or pentium D".
Is there anyone have done this before?
Thanks.
The Info I need looks like the photo below.
07-21-2009 08:29 PM
Several days? Have you been searching in these forums? What have you used as your search terms? I searched for "get os version cpu" and got several hits, including this one, which looks quite useful. In the VI posted in that thread the "Windows Version" can be converted to whether it's Win98, XP, etc. (4.1 = Win98, 5.0 = Win2K, 5.1 = XP ...). Note that the Application class has an OS.Version property that will return this single piece of information.
Some of this information is also available in the registry, though you'll have to hunt for it. Here's an example of getting the OS version from the registry. As far as which registry keys to read, that information is unlikely to be in these forums, so you'll have to search the internet.
07-21-2009 09:24 PM - edited 07-21-2009 09:26 PM
And another problem is, the processor type returned within the VI have only 4 type:"INTEL 386, INTEL 486, PENTIUM, Unknown".
It can not really return my CPU TYPE. For example the desktop I’m using now is a Pentium, D , 2.80G, 2.80G.. and it only returns type "Pentium". That's why I'm asking is there any other way to do this...... (( Please forgive me if you can not really know what I'm talking about in my first post, now I know how bad my english is.......07-22-2009 09:33 PM