DML functions: System

getEnv returns the value of an operating system environment variable

setEnv replaces the current value of an environment variable with another value

runProgram executes the command that is specified in the function parameter

The following System functions are available:

getEnv

getEnv Comment

Description

getEnv returns the value of an operating system environment variable.

Syntax

getEnv(environment_variable_name)

Return

String

Parameters

environment_variable_name
Specify the name of an environment variable. This value is a String.

Example

getEnv("EnvVar")

setEnv

setEnv Comment

Description

setEnv replaces the current value of an environment variable with another value.

Syntax

setEnv (environment_variable_name, replacement_value

Return

setEnv does not return a value.

Parameters

environment_variable_name
Specify the name of an environment variable. This value is a String.

replacement_value
Specify the name of the environment variable that you want to substitute for the current environment variable. This value is a String.

Example

setEnv("EnvVar", "NewEnvVarValue")

runProgram

runProgram Comment

Description

runProgram executes the command that is specified in the function parameter

Syntax

runProgram(command_name)

Return

Integer: returns the value that is returned by the command interpreter.

Parameters

command_name
Specify the command to be interpreted. This value is a String.

Example

runProgram("rename c:\file01.txt file02.txt")
Returns the value provided by the command interpreter.

Related Links