Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Gets value of specified environment variable

 


Syntax

Env_GetString(sName, sType, bMustExist) As Boolean

 


Parameters

sName (String)

Environment variable name.

...

Environment variable must exist

 


Return value

Result will be stored in gsValue 


Example

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
If bStatus Then bStatus = Env_GetString("Path", "System", True)
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines 


Related functions

Env_SetString