WshShell.ExpandEnvironmentStrings
Expand an NT environment variable.
Syntax
WshShell.ExpandEnvironmentStrings(strString)
Arguments:
strString is a PROCESS environment variable
enclosed with "%" characters
Example
MsgBox "Prompt is " & WshShell.ExpandEnviromentStrings("%PROMPT%")
Note: Variable names are not case-sensitive.
"I would rather train someone and lose them, than not train them and keep
them" - Zig
Ziglar
Related commands:
Environment, read env variables - WshShell.Environment
Equivalent Windows command:
SET - Display, set, or remove environment
variables