473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

OS ServicePac ?

What is the best way to determine what OS ServicePac is installed on
the user's system?
Can it be determined from the version # as in 5.1.2600.131072 (Happens
to be a WinXP/SP2 system) ?

Thanks,

Gene
May 8 '06 #1
3 936
I think you can get it through the use of WMI to query the OS and ask the
service pack level
"gene kelley" <ok**@by.me> wrote in message
news:16********************************@4ax.com...
What is the best way to determine what OS ServicePac is installed on
the user's system?
Can it be determined from the version # as in 5.1.2600.131072 (Happens
to be a WinXP/SP2 system) ?

Thanks,

Gene

May 8 '06 #2
On Sun, 7 May 2006 22:02:45 -0400, "Brian Henry" <no****@nospam.com>
wrote:
I think you can get it through the use of WMI to query the OS and ask the
service pack level


There are a couple of different "one-liners" in' My.Computer.Info'
that provide some OS info, bu no SP info. I just stumbled across
another method that does yield that info:

Dim os As OperatingSystem = Environment.OSVersion
Label1.Text = os.ServicePack
'Returns Service Pack 2
Label2.Text = os.Platform.ToString
'Returns Win32NT
Label3.Text = os.VersionString
'Returns Microsoft Windows NT 5.1.2600 Service Pack 2
Thanks,
Gene
"gene kelley" <ok**@by.me> wrote in message
news:16********************************@4ax.com.. .
What is the best way to determine what OS ServicePac is installed on
the user's system?
Can it be determined from the version # as in 5.1.2600.131072 (Happens
to be a WinXP/SP2 system) ?

Thanks,

Gene

May 8 '06 #3
"gene kelley" <ok**@by.me> schrieb:
What is the best way to determine what OS ServicePac is installed on
the user's system?


<URL:http://groups.google.de/group/microsoft.public.de.german.entwickler.dotnet.cshar p/msg/45be47e364f3d134>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Navin Tenani | last post by:
Hi. Looking for any help I can find! I have a brand new server running Windows Server 2003, Enterprise Edition with SP1 . I just installed the first program on the server of SQL Server 2000...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.