Property:  WScript.Application

WScript.Application

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

The following 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.

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

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information