Difference between revisions of "Comopen"
From Scriptwiki
(Added page.) |
m (Added /comclose and /comlist) |
||
Line 4: | Line 4: | ||
You should check [[$comerr]] after making this call to confirm that the COM connection was successful. | You should check [[$comerr]] after making this call to confirm that the COM connection was successful. | ||
+ | |||
+ | == comlist and comclose == | ||
+ | Use /comlist to list all open COM connections. | ||
+ | /comlist | ||
+ | |||
+ | Use /comclose to close the COM connection. | ||
+ | /comclose name | ||
== See Also == | == See Also == | ||
* [[$comerr]] | * [[$comerr]] | ||
− |
Revision as of 21:18, 6 July 2014
This opens a COM connection to object progid eg. Excel.Application, and assigns the connection a name.
/comopen name progid
You should check $comerr after making this call to confirm that the COM connection was successful.
comlist and comclose
Use /comlist to list all open COM connections.
/comlist
Use /comclose to close the COM connection.
/comclose name