Page tree
Skip to end of metadata
Go to start of metadata

Description

Sets value of specified environment variable

 

Syntax

Env_SetString(sName, sValue, sType) As Boolean

 

Parameters

sName (String)

Environment variable name

sValue

Environment variable value

sType (String)

Environment variable type. 'System', 'User' or 'Process'

 

Example

VBScript
If bStatus Then bStatus = Env_SetString("TEST", "C:\MyFiles", "SYSTEM")

Scripting Guidelines

 

Related functions

Env_GetString

  • No labels