Shutdown Outlook 2003 using Task Scheduler

G

Guest

Is this possible with XPH? I have recently loaded Shutdown Addin v1.8 which
helps Outlook exit, or forces it down if necessary, when Outlook is manually
shutdown. Unfortunately Shutdown Addin does not have scheduling capabilities
- at least not that I know of. Thanx in advance for any input.

SteveN
 
T

Thomas Quester

Steve

You can do with VB, VB Script etc. In VB it looks like this:

Private Sub Form_Load()
Command$
Dim explor As Object
Dim olapp As Object
Set olapp = GetObject("", "outlook.application")
If Not (olapp Is Nothing) Then
If (Command$ = "minimize") Then
For Each explor In olapp.Explorers
explor.WindowState = 1
Next explor
End If
If (Command$ = "quit") Then
olapp.quit
End If
End If
Unload Me
End Sub

compiled it can be called by task scheduler with setol quit. (Source code
and compiled application can be downloaded here: www.olfolders.de/setol.zip)

However quitting only works if no unsaved elements are present.

Thomas Quester
www.olfolders.de
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top