Get the fully qualified path of the system directory in CSharp

Description

The following code shows how to get the fully qualified path of the system directory.

Example


//from  w w w.  j  a v a  2s.  c  o m
using System;

class Sample 
{
    public static void Main() 
    {
       Console.WriteLine("SystemDirectory: {0}", Environment.SystemDirectory);
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    Development »




Console
Encoding
Environment
Random