Get Environment Variables
This code will show list of Environment Variables in Windows:
foreach (DictionaryEntry de in Environment.GetEnvironmentVariables())
{
listBox1.Items.Add(de.Key + " = " + de.Value);
}
Do not forget to include this:
using System.Collections; // for DictionaryEntry
Related posts:






















