Skip to main content

Read-Environment-Variable

Command Description

Read environment variable

Command Prototype

sRet = Sys.GetEnviron(sEnvironName)

Parameter Description

ParameterRequiredTypeDefaultDescription
sEnvironNameTruestring""The name of the environment variable to be obtained

return

sRet,The variable used to save the output of the command.

Demo

/************************************Read environment variables************ ************************ 
Command prototype:
sRet = Sys.GetEnviron ("")
Input parameters:
sEnvironName--the name of the environment variable to get
Outgoing parameters:
sRet--the result after the command is run
********************************************************************************/
Dim sEnvironName="OS"
sRet = Sys.GetEnviron (sEnvironName)
TracePrint (sRet)