清空事件日志
#Include <EventLog.au3>
_EventLog__Clear($hEventLog, $sFileName)
$hEventLog | 事件日志句柄 |
$sFileName | 备份文件名称. 如果名称为空, 当前事件日志不备份. |
成功: | True |
失败: | False |
#include <EventLog.au3>
_Main()
Func _Main()
Local $hEventLog
$hEventLog = _EventLog__Open("", "Application")
_EventLog__Clear($hEventLog, "C:\EventLog.bak")
_EventLog__Close($hEventLog)
EndFunc ;==>_Main