L
Lloyd Dupont
I tried something like:
Environment.OSVersion.ToString()
but that returns me something like:
Microsoft Windows NT 5.1.2600 Service Pack 2
where as I was hoping for something like
Windows XP Service Pack 2
How to get Windows XP ?
I saw some code elsewhere which hard coded the following:
OperatingSystem osinfo = Environment.OSVersion;
if (osinfo.Version.Minor == 4)
return "Microsoft Windows NT";
if (osinfo.Version.Major == 5 && osinfo.Version.Minor == 0)
return "Microsoft Windows 2000";
if (osinfo.Version.Major == 5 && osinfo.Version.Minor == 1)
return "Microsoft Windows XP";
But it's not very much future proof.
Any suggestion?
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
Environment.OSVersion.ToString()
but that returns me something like:
Microsoft Windows NT 5.1.2600 Service Pack 2
where as I was hoping for something like
Windows XP Service Pack 2
How to get Windows XP ?
I saw some code elsewhere which hard coded the following:
OperatingSystem osinfo = Environment.OSVersion;
if (osinfo.Version.Minor == 4)
return "Microsoft Windows NT";
if (osinfo.Version.Major == 5 && osinfo.Version.Minor == 0)
return "Microsoft Windows 2000";
if (osinfo.Version.Major == 5 && osinfo.Version.Minor == 1)
return "Microsoft Windows XP";
But it's not very much future proof.
Any suggestion?
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>