Home > DeveloperSection > Forums > Get OS version and machine name using C#
E E Cummings
E E Cummings

Total Post:26

Points:182
Posted on    October-05-2013 9:22 AM

 C# C# 
Ratings:


 1 Reply(s)
 1434  View(s)
Rate this:
My need is that how can I get the My machine name and OS version using C


Dag Hammarskjold
Dag Hammarskjold

Total Post:24

Points:168
Posted on    October-05-2013 9:32 AM

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace ColorConsole

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("My Machine name is:: {2}\n My System OS Version is:: {1}",Environment.MachineName, Environment.OSVersion);

        }

    }

}


Don't want to miss updates? Please click the below button!

Follow MindStick