WSH » WScript » Application

Syntax:
WScript.Application

The Application property is read only and returns a reference to the current WScript instance.

Examples

Code:
Set objWScript = WScript.Application
If WScript = objWScript Then
    WScript.Echo "They're equal"
Else
    WScript.Echo "They're different"
End If
Output:
They're equal
Explanation:

This VBScript code obtains a reference to the WScript object through the Application property, and then compares this to the WScript object to demonstrate that they are identical.

Language(s): VBScript