Tag: system.environment
-
Accessing System information through Environment in C#
The Environment List When a program is executed, it is also passed a list of current environmental variables (such as HOME, PATH etc). This is the same in both Unix and Windows. The following code example shows how a call to Environment.GetEnvironmentVariables returns all the currently defined variables. The following code explores the various members…