(getenv variable)
Determine the value of the operating system variable.
This function returns the value of a specified operating system environment variable-for example, as stored by the DOS PATH variable. If the variable exists, its value is returned as a string; if it does not exist, nil is returned.
Examples
Code | Returns |
---|---|
(getenv "PATH") | C:\\;C:\\WIN95;C:\\ICAD |
(getenv "junk") | nil |