| Where | Type | Optional | Default | Description |
|---|---|---|---|---|
| EnvironmentString | String | String that might contain references to environment-variable strings. |
| ||
Set S = CreateObject("RegEdit.Server")
'Get windows directory
Wscript.Echo "windir: " & S.ExpandEnvironmentStrings("%windir%")
'Get temp path
Wscript.Echo "temp: " & S.ExpandEnvironmentStrings("%temp%") |