[python-win32] CLosing/Shutting down a COM application, started from a Python program

Tony Cappellini tony at tcapp.com
Mon May 5 18:01:16 EDT 2003


I've looked through Mark Hammond's book, as well as some of the COM
tutorials, and found that this is used to start an aplication through COM

import win32com.client
> xl=win32com.client.Dispatch("")

This works quite well for my sitatuion.

What I could not find is how to terminate/close that same application from
the
same Python program, via COM.

I don't want to thave to go to the application itself, and chose
File/Exit.

Is there a way to close the program via COM ?

thanks









More information about the Python-win32 mailing list