Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to close Outlook 2003 w/vbs

Status
Not open for further replies.

KRPGroup

MIS
Jun 22, 2005
317
CA
I am trying to close Outlook 2003 before allowing an install to run. This use to work with OL2000 but now doesn't work with OL2003. Excel 2000 is closing fine, any suggestions?

Code:
GetObject(Outlook.Application).Quit
GetObject(,"Excel.Application").Quit

 
I was trying a few combations but originally the code was: GetObject(,"Outlook.Application").Quit
 
I would use WMI to enumerate running processes and kill all Outlook.exe processes.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Will that be a clean close of Outlook?

I pretty weak at scripting and not sure how to what you have suggested?

Is there some samples you can point me to?
 
[google]WMI enumerate processes[/google]
[google]WMI stop process[/google]


Bart.gif


I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top