Some environment variables are just system-wide string variables which can modify the behavior of OS (and mostly per the OS user), but most of them can be used by applications in arbitrary manner, to set up some system-wide strings (very typically, path strings) and using them across different application procedure. Such uses are majorly obsolete and indicates poor programming style, which was, however, widely used by some software vendors in near past. If you don't know the use of them right now, I would not advise to worry about them; you may only need to use them to control some legacy application and their installation options, and limited number of modern applications; it's the best to avoid it. For further detail, please see:
http://en.wikipedia.org/wiki/Environment_variable[
^].
If you still feel you need to access the environment variable, you can do it via the methods of the class
System.Environment
, please see:
http://msdn.microsoft.com/en-us/library/system.environment.aspx[
^].
—SA