using System; using System.Collections; class MainClass { public static void Main() { IDictionary vars = Environment.GetEnvironmentVariables( EnvironmentVariableTarget.Process); foreach (string s in vars.Keys) { Console.WriteLine(s + " = " + vars[s]); } } }
Path = C:\Program Files\Microsoft.NET\SDK\v2.0\Bin; ... ...