|Microsoft Operations Manager|
The ClearEventLogmethod clears the specified event log and optionally saves the current copy of the log file to a backup file.
[VBScript] EventLog.ClearEventLog(EventLogName Variant, OutputFolderName Variant, SavedFileName Variant, [MachineName Variant])
The backup file name is automatically generated. The format of the file name is OMEventLog_(EventLogName)_(CurrentDate and Time).evt.
This function fails if the event log is empty or a file already exists with the same name as the backup file.
The EventLogobject should not be used when creating new scripts. It is included only to support existing scripts. For more information about equivalent APIs, see Using Operating System APIs in Scripts.
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to email@example.com.