Hi all,
How do i show the current OS and Service pack of a machine.
If i use
on my vista machine it shows up as Microsoft Windows NT 6.0.6000.0Code:Dim OS As String = (Environment.OSVersion.VersionString)
Printable View
Hi all,
How do i show the current OS and Service pack of a machine.
If i use
on my vista machine it shows up as Microsoft Windows NT 6.0.6000.0Code:Dim OS As String = (Environment.OSVersion.VersionString)
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.
ah right thanks,
So i will just have to get the program to display Vista, or XP instead of the official name.
There's a good guide to interpreting the Windows version numbers at
http://www.codeguru.com/cpp/w-p/syst...icle.php/c8973