Tag Archives: environment variable

Get environment variables

Use the System.Envirionment.GetEnvironmentVariable method to get an environment variable.

string value = GetEnvironmentVariable(“OS”);

This gets the %OS% system variable.

Lastest update in May 2011, inital post in May 2011