Environment.GetEnvironmentVariable(String key)
using System; using System.Collections; class MainClass { public static void Main() { Console.WriteLine("Path = " + Environment.GetEnvironmentVariable("Path")); } }