OS Name differ through command and through c# codeHi Team,
Today I faced one typical issue while doing my code, I want to retrieve the system OS Information, I approached in different ways.
1) through command prompt run the following script
c:\>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 8.1 Pro
OS Version : 6.3.9600 N/A Build 9600
2) through C# code using below
OperatingSystem os = Environment.OSVersion;
Version vs = os.Version;
Microsoft Windows NT 6.2.9200.0
See the difference between both through command version is 6.3 through code version is 6.2, how it's possible? I'm totally confused after see the difference, if any one face this type of problem then share your thoughts for the same.