REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: get-env

get-env  var

Returns the value of an OS environment variable (for current process).

Arguments:

var [any-string! any-word!]

See also:

list-env  

Description

This function will return the string associated with an OS environment variable.

probe get-env "COMPUTERNAME"
"BIGBOY"

To obtain a list of all environment variables and their values, use list-env.


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin