Sys_ClearEventlog
Description
This function clears the specified part of the eventlog
Â
Syntax
Sys_ClearEventlog(sType, bCreateBackup) As Boolean
Â
Parameters
sType (String)
Type of Event. Can be Application, System or Security
bCreateBackup (Boolean)
Create a backup. Backup will be placed in %WinDir%\System32\EventlogBackup\<TYPE>_<DATE>.evt
Â
Example
VBScript
If bStatus Then bStatus = Sys_ClearEventlog("Application", False) If bStatus Then bStatus = Sys_ClearEventlog("Security", True) If bStatus Then bStatus = Sys_ClearEventlog("System", False)
Â
Related functions
Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner