SETENV

setenv.html
options random home http://www.mentasm.com/~mramiga/c/setenv.html (Amiga Plus Extra No. 5, 08/1997)


Format:    SETENV [(name)] [(string...)]
Template:  NAME,STRING/F
Location:  Internal 

SETENV with no arguments lists the current global variables.

SETENV with (name) and (string) arguments creates a new global variable. The first word after SETENV is taken as the (name). Everything else on the line is taken as the (string) argument. Quotation marks are not required.

Global variables are stored in the ENV: directory and are available to all processes. However, if a local variable and a global variable share the same name the local one is used.

Environment variables are called by scripts or other commands by including a dollar sign ($) in front of the variable name.

To remove a global variable definition use the UNSETENV command.


Example:

See also: GETENV, UNSETENV