program to close Outlook if opened

C

Chris

I need to install an Outlook add-on for users via SMS package but it requires
Outlook to be closed first. How can I create a program (vb script or batch)
to close Outlook if it's running? Any sample I can use?

Thanks,
 
K

Ken Slovak - [MVP - Outlook]

Use GetObject to see if you get an instance of a running Outlook object. If
you do then call the Quit method on the object you get back from GetObject.
 
Top