retrieve operating system from ASP.NETcode

M

Mark Rae

djoledjole said:
How to retrieve server operating system from ASP.NET code
Thanks in advance

System.Environment.OSVersion returns a string representing the OS version -
look it up here:

4.00.1381 Windows NT 4.0
5.00.2195 Windows 2000
5.1.2600 Windows XP
5.1.2600.2096 Windows XP Service Pack 2 RC1
5.1.2600.2149 Windows XP Service Pack 2 RC2
5.2.3663 Windows Server 2003 RC1
5.2.3718 Windows Server 2003 RC2
5.2.3790 Windows Server 2003 RTM
6.0.4051 Windows "Longhorn" Client Preview 1
6.0.4074 Windows "Longhorn" Client Preview 2

I've no doubt missed a few out...
 
K

Kevin Spencer

private object _Operating System;
public object OperatingSystem
{
get
{
return _OperatingSystem;
}
}

--
;-),

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top