Expand a Windows environment variable.
Syntax
WshShell.ExpandEnvironmentStrings(strString)
Key:
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:
Environment, Read Environment variables
Equivalent Windows CMD command: SET - Display, set, or remove environment
variables
Equivalent Powershell command: Get-Item env:HOMEDRIVE or $env:HOMEDRIVE