GET OS VERSION AND MACHINE NAME USING C#

E E Cummings

Total Post:25

Points:175
Posted by  E E Cummings
C# 
C#
 2156  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);
            }
        }
    }

      Modified On Mar-31-2018 06:32:27 AM

Answer

NEWSLETTER

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