LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to detect the OS version and the hardware info??

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? Smiley Sad

 

 

Thanks.

 

 

 

The Info I need looks like the photo below.

1111.JPG

Message Edited by EricLu on 07-21-2009 08:09 PM
0 Kudos
Message 1 of 4
(3,446 Views)

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. 

Message 2 of 4
(3,439 Views)
Well, in fact I have the VI and also read the topics as well...... The searching tag is OS info , system info......... After reading your post, now I understand the relation between the version number and the real OS version now, tks. 

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.......  Smiley Sad  ))  I guess I can only try to find out the solution from the registry then... Thanks for your information and reply.  🙂
Message Edited by EricLu on 07-21-2009 09:25 PM
Message Edited by EricLu on 07-21-2009 09:26 PM
0 Kudos
Message 3 of 4
(3,426 Views)
See attatch file
0 Kudos
Message 4 of 4
(3,393 Views)