SETENV Procedure (UNIX/Windows)

Adds or changes an environment string in the process environment.

Usage

SETENV, environment_expr 

Input Parameters

environment_expr—A scalar string containing an environment expression to be added to the environment.

Keywords

None.

UNIX Example

SETENV, 'SHELL=/bin/sh'

Windows Example

To change the HOMEPATH environment variable to point to the directory D:\users\chris\utah_data:

SETENV, 'HOMEPATH=D:\users\chris\utah_data'
r = GETENV('HOMEPATH')
PRINT, r
; PV-WAVE prints: D:\users\chris\utah_data

See Also

ENVIRONMENT, GETENV