遍历系统环境变量的键和值

//遍历环境变量的键和值
            foreach(DictionaryEntry en in Environment.GetEnvironmentVariables())
            {
                en.Key.ToString();
                en.Value.ToString();             
            }
原文地址:https://www.cnblogs.com/wjshan0808/p/4234323.html