using System;
using System.Collections;
namespace Project1
{
class ListSystemProperties
{
static void Main()
{
System.Console.WriteLine("\tKey\t\t\tValue");
foreach (
DictionaryEntry enValue in Environment.GetEnvironmentVariables())
{
string key =
enValue.Key.ToString();
string value =
enValue.Value.ToString();
System.Console.WriteLine("\t"+key);
System.Console.WriteLine("\t\t" + value);
}
}
}
}
转载于:https://www.cnblogs.com/yuquanlaobo/archive/2007/01/17/622840.html