The ExpandEnvironmentStrings method expands the PROCESS environment variable in strString and returns the result string. Variables are enclosed by the '%' character.
The environment variable name is not case-sensitive.
WshShell.ExpandEnvironmentStrings(strString) = strExpandedString
MsgBox "Prompt is " & WshShell.ExpandEnviromentStrings("%PROMPT%")