WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Shell
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Write an Event to the Eventlog

 Keywords: Write  Event log Eventlog wntEventWrite

;Write message to EventLog
;
;Type Value 
;0 SUCCESS 
;1 ERROR 
;2 WARNING 
;4 INFORMATION 
;8 AUDIT_SUCCESS 
;16 AUDIT_FAILURE 


WshShell = CreateObject("WScript.Shell")
WshShell.LogEvent(4, "Message")
WshShell = 0

Article ID:   W18190
Filename:   Write an Event to the Eventlog.txt
File Created: 2009:01:08:08:41:14
Last Updated: 2009:01:08:08:41:14