Mathematica 9 is now available

Environment

Usage

Environment["var"] gives the value of an operating system environment variable.


Notes

• The values of environment variables are returned by Environment as strings.
Environment returns $Failed if it cannot find a value for the operating system variable you requested.
• The behavior of Environment depends on the computer system you are using.
• See also: Run, $CommandLine, $System.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.