|
-
Jan 7th, 2009, 05:27 AM
#1
Thread Starter
Lively Member
[2008] Show current OS and Sp
Hi all,
How do i show the current OS and Service pack of a machine.
If i use
Code:
Dim OS As String = (Environment.OSVersion.VersionString)
on my vista machine it shows up as Microsoft Windows NT 6.0.6000.0
-
Jan 7th, 2009, 05:39 AM
#2
Re: [2008] Show current OS and Sp
The OSVersion has another property named ServicePack that will give you the service pack. As for the OS name, what you've got there is the official name. As far as I'm aware it's up to you to interpret the Version property as Windows XP, Vista or whatever.
-
Jan 7th, 2009, 05:41 AM
#3
Thread Starter
Lively Member
Re: [2008] Show current OS and Sp
ah right thanks,
So i will just have to get the program to display Vista, or XP instead of the official name.
-
Jan 7th, 2009, 05:50 AM
#4
Member
Re: [2008] Show current OS and Sp
There's a good guide to interpreting the Windows version numbers at
http://www.codeguru.com/cpp/w-p/syst...icle.php/c8973
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|