please dont rip this site

WshShell.Environment

The Environment property returns the WshEnvironment object.

Syntax

WshShell.Environment ( [strType]) = objWshEnvironment
 

Remarks

If strType specifies where the environment variable resides, possible values are "System", "User", "Volatile", and "Process". If strType is not supplied, this method retrieves the system environment variables in Windows NT or the process environment variables in Windows 95.

For Windows 95, only "Process" is supported in the strType parameter.

The following variables are provided with the Windows operating system. Scripts can also get environment variables that were set by other applications.

Name Description
NUMBER_OF_PROCESSORS Number of processors running on the computer.
PROCESSOR_ARCHITECTURE Processor type of the user's workstation.
PROCESSOR_IDENTIFIER Processor ID of the user's workstation.
PROCESSOR_LEVEL Processor level of the user's workstation.
PROCESSOR_REVISION Processor version of the user's workstation.
OS Operating system on the user's workstation.
COMSPEC Executable for command Command Prompt (typically cmd.exe).
HOMEDRIVE Primary local drive (typically the C drive).
HOMEPATH Default directory for users (on Windows NT this is typically \users\default.
PATH PATH environment variable.
PATHEXT Extensions for executable files (typically .com, .exe, .bat, or .cmd).
PROMPT Command prompt (typically $P$G).
SYSTEMDRIVE Local drive on which system directory resides (for example, c:\).
SYSTEMROOT System directory (for example, c:\winnt). This is the same as WINDIR.
WINDIR System directory (for example, c:\winnt). This is the same as SYSTEMROOT.
TEMP Directory for storing temporary files (for example, c:\temp). User, Volatile
TMP Directory for storing temporary files (for example, c:\temp). User, Volatile

Example

' Retrieve the NUMBER_OF_PROCESSORS system environment variable
    Set WshShell = Wscript.CreateObject("Wscript.Shell")

    Set WshSysEnv = WshShell.Environment("SYSTEM")
    Wscript.Echo WshSysEnv("NUMBER_OF_PROCESSORS")

See Also

WshEnvironment object


© 1997 by Microsoft Corporation. All rights reserved.


file: /Techref/inet/iis/iis/htm/asp/wsho9wxg.htm, 4KB, , updated: 2002/5/22 16:35, local time: 2025/5/27 23:28,
TOP NEW HELP FIND: 
216.73.216.26,10-1-150-167:LOG IN

 ©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.ecomorder.com/techref/inet/iis/iis/htm/asp/wsho9wxg.htm"> WshShell.Environment</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to www.ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .