IDL

SETENV

SETENV

The SETENV procedure adds or changes an environment string in the process environment.

Examples


Change the current shell variable by entering:

SETENV,'SHELL=/bin/sh'

Make sure to eliminate any whitespace around the equal sign:

; This is an incorrect usage--there are spaces around the equal 
; sign:
SETENV, 'VAR = H:\exelis'
 
; This is correct--VAR is set to H:\exelis:
SETENV, 'VAR=H:\exelis'

Syntax


SETENV, Environment_Expression

Arguments


Environment_Expression

A scalar string or string array containing one or more environment expressions to be added to the environment.

Keywords


None.

Version History


Original

Introduced

See Also


GETENV



Notes


This page has no user notes yet. Be the first one!


This information is not subject to the controls of the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR). However, it may be restricted from transfer to various embargoed countries under U.S. laws and regulations.
© 2014 Exelis Visual Information Solutions