Schedule application end
Discussion
Under windows xp (service pack 2) is there anyway of ending a specific application (outlook) at a particular time of day (midnight)? I occasionally forget to shut outlook down and then it downloads all my mail periodically which means I can't look at it at work using the web mail client.
Thanks,
Mark
Thanks,
Mark
Dim oOL 'As Outlook.Application
Set oOL = GetObject(, "Outlook.Application")
If oOL Is Nothing
'no need to do anything, Outlook is not running
Else
'Outlook running
oOL.Session.Logoff
oOL.Quit
End If
Set oOL = Nothing
Shuts down everything nice and tidy like.
Edited by Plotloss on Tuesday 11th September 19:27
This might be of some use:
http://ask-leo.com/how_do_i_automatically_close_a_...
Actual example used is Outlook but be aware of the pitfalls mentioned.
Oops - hadn't seen other responses before posting this - Plotloss seems to have cracked it!
http://ask-leo.com/how_do_i_automatically_close_a_...
Actual example used is Outlook but be aware of the pitfalls mentioned.
Oops - hadn't seen other responses before posting this - Plotloss seems to have cracked it!
Edited by Roy the Boy on Tuesday 11th September 19:36
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff




