Microsoft® Windows® Script Host WshEnvironment Object |
WSH Reference Version 1 |
Retrieves the Microsoft Windows system environment variables.
Not exposed; accessed through the Environment property.
The following example retrieves the NUMBER_OF_PROCESSORS system environment variable.Set WshShell = WScript.CreateObject("WScript.Shell") Set WshSysEnv = WshShell.Environment("SYSTEM") WScript.Echo WshSysEnv("NUMBER_OF_PROCESSORS")