|
Action |
Creates a backup of a Windows NT eventlog.
|
Syntax |
BACKUPEVENTLOG ("eventlog", "backupfile")
|
Parameter |
Eventlog
String indicating the eventlog to backup. By default, Windows NT supports three eventlogs: "Application", "Security" and "System". Optionally, the string can include the name of a remote system on which to backup the log.
Backupfile
String indicating the name of the backupfile. Note: the file must not exist.
|
Returns |
|
0 |
Eventlog backed up. |
|
>0 |
Errorcode. |
|
Examples |
BackupEventlog( "Application" , "C:\eventbackups\application.evt"
)
BackupEventlog( "\\PDC\Application" , "C:\eventbackups\application.evt")
BackupEventlog( "System" , "C:\eventbackups\system.evt")