vbs acces environment variables code example
Example: vbs expand env var
Set oShell = CreateObject("WScript.Shell")
value = oShell.ExpandEnvironmentStrings("%my_env_variable%")
WScript.Echo value
Set oShell = CreateObject("WScript.Shell")
value = oShell.ExpandEnvironmentStrings("%my_env_variable%")
WScript.Echo value