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