Environment.GetEnvironmentVariables()
using System;
using System.Collections;
class MainClass
{
public static void Main()
{
Console.WriteLine("Environment Variables");
foreach (DictionaryEntry var in Environment.GetEnvironmentVariables())
Console.WriteLine("{0}={1}", var.Key, var.Value);
}
}
Related examples in the same category