Get environment variables

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

string value = GetEnvironmentVariable(“OS”);

This gets the %OS% system variable.

Leave a Reply

Your email address will not be published. Required fields are marked *