Hi Markus,
Thank you for posting in the community! My name is Jeffrey, and I will be
assisting you on this issue.
Based on my understanding, you want to collect some useful information of
your operating system, such as OS version.
=============== =============== =============== ========
In .Net, just as you find, the simplest way of getting the system version
information is using System.Environm ent.OSVersion property.
Internally, Environment.OSV ersion.ToString () will default return the full
code information of the OS, for XP, it is "Microsoft Windows NT 5.1.2600.0".
This system information string is the Windows' system information define
rule.
Similarly, the "Microsoft Windows NT" property indicates one of the
following operating systems:
Windows NT 3.51
Windows NT 4.0
Windows 2000
Windows XP
For 5.1.2600.0, '5' is the major component of the version number(It means
Windows XP system). '1' is the minor component of the version number for
this instance. '2600' is the build component of the version number for this
instance. While '0' is the revision component of the version number for
this instance.
You can use Environment.OSV ersion.Platform to return a PlatformID
enumeration which get Win32NT,
and you can use Environment.OSV ersion.Version to return a Version object,
which has 4 properties: Build, Major, Minor, Revision will get "5.1.2600.0 "
part.
For more detailed information and sample, please refer to the article
below(This is C# version):
http://support.microsoft.com/default...en-us%3B304283
Actually, "system information" is a wide concept, there is not a common way
to retrieve all the "system information" of the entire system. You also can
refer to System.Windows. Forms.SystemInf ormation class to get information
such as Windows display element sizes, operating system settings, network
availability, and the capabilities of hardware installed on the system.
Please refer it in MSDN document.
=============== =============== =============== =============== =====
Please apply my suggestion above and let me know if it helps resolve your
problem.
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Have a nice experience on using Microsoft Newsgroup!!
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.