Command Prompt for Windows




Command COG

Function:

Get a COM object property value and store the value in an environment variable.

Syntax:

COG var=obj.property
varEnvironment variable to store the retrieved COM object property value.
objEnvironment variable that contains a valid handle to a COM object.
propertySpecifies the name of the COM object property to get.

Note:

The environment variable obj must be a valid handle created using the CreateObject() syntax of command COM.

Also see command COP, COM and Automation.