Access an already existing object rather than creating a new one.
|Property/method value type:||WScript object|
|WSH||WScript.GetObject(aPath, aProgID, aPrefix)|
|Argument list:||aPath||The path to an already existing document|
|aProgID||An application programme ID|
|aPrefix||A hook into the event model|
You can use this method to access an object that you know already exists without needing to create a fresh instance. An example of the difference is that CreateObject() is used to manufacture new documents via the application while GetObject() is used to access existing documents.
Given the object that encapsulates the document, since it is a WScript object, you can access its Application property to control the owning application.