Microsoft® Windows® Script Host
WshEnvironment Object
WSH Reference
Version 1

See Also                      Properties                      Methods


Description
Retrieves the Microsoft Windows system environment variables.
Remarks
Not exposed; accessed through the Environment property.

Example
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")