WSH » WScript » Name

Syntax:
WScript[.Name]

The Name property is read only and returns the name of the WScript object (usually "Windows Script Host"). This is the default property of the WScript object.

Examples

Code:
WScript.Echo "Default property =", WScript
WScript.Echo "Name property =", WScript.Name
Output:
Default property = Windows Script Host
Name property = Windows Script Host
Explanation:

This VBScript code illustrates the use of this property.

Language(s): VBScript