Initialize Method

Sets the Exchange server name where MTA logs will be analyzed and locates the MTA logs. If the logs cannot be located, this method returns False.

Syntax

obj.Initialize(ExchangeServer String, [LogDir string])
where obj is an McExchg.MTALogAnalyzer object.

Parameters

ExchangeServer Name of Exchange server where MTA logs will be analyzed.
LogDir Specifies the complete path to the MTA log files. This parameter is optional.

Return Type

Boolean.

Example

To set the MTA Log Analyzer object to the EXCHSERVER1 Exchange server, enter:

Set obj = CreateObject("McExchg.MTALogAnalyzer")
bOK = obj.Initialize("EXCHSERVER1")
If Not bOK Then strError = obj.GetError()

This example shows how to initialize the MTA Log Analyzer object to an Exchange server.