GET OS VERSION AND MACHINE NAME USING C#

E E Cummings

Total Post:26

Points:182
Posted by  E E Cummings
C# 
C#
 1825  View(s)
Ratings:
Rate this:
My need is that how can I get the My machine name and OS version using C
  1. Dag Hammarskjold

    Post:24

    Points:168
    Re: Get OS version and machine name using C#

    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);

            }

        }

    }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!