VantiveGuy
Programmer
I have a virtual machine that is set up to start an outlook session every 15 minutes and process mails from shared mailboxes. However, sometimes the Exchange server goes down over weekends for mtce, and when the schedule starts Outlook there is a message box shown and Outlook is stopped until I go into the machine, clear the error message and close Outlook.
As this is meant to be an unattended function I need to check in my startup script if exchange server is running. Is this possible? I am using the scheduler to start a script as shown below.
On Error Resume Next
Set olkApp = GetObject(,"Outlook.Application")
Set oShell = CreateObject("WScript.Shell")
If TypeName(olkApp) <> "Application" Then
iRet = oShell.Run ("outlook.exe /autorun Application_Startup", 1, True)
End If
In the above I need a test to make sure exchange server is running. Any ideas?
Thanks you.
As this is meant to be an unattended function I need to check in my startup script if exchange server is running. Is this possible? I am using the scheduler to start a script as shown below.
On Error Resume Next
Set olkApp = GetObject(,"Outlook.Application")
Set oShell = CreateObject("WScript.Shell")
If TypeName(olkApp) <> "Application" Then
iRet = oShell.Run ("outlook.exe /autorun Application_Startup", 1, True)
End If
In the above I need a test to make sure exchange server is running. Any ideas?
Thanks you.