Environment

Environment["var"]

gives the value of an operating system environment variable.

Details

  • 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.

Examples

Basic Examples  (1)

Wolfram Research (1988), Environment, Wolfram Language function, https://reference.wolfram.com/language/ref/Environment.html.

Text

Wolfram Research (1988), Environment, Wolfram Language function, https://reference.wolfram.com/language/ref/Environment.html.

CMS

Wolfram Language. 1988. "Environment." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Environment.html.

APA

Wolfram Language. (1988). Environment. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Environment.html

BibTeX

@misc{reference.wolfram_2024_environment, author="Wolfram Research", title="{Environment}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Environment.html}", note=[Accessed: 17-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_environment, organization={Wolfram Research}, title={Environment}, year={1988}, url={https://reference.wolfram.com/language/ref/Environment.html}, note=[Accessed: 17-November-2024 ]}