RosettaCodeData/Task/Write-to-Windows-event-log/Batch-File/write-to-windows-event-log-1.bat

4 lines
190 B
Batchfile
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
@echo off
EventCreate /t ERROR /id 123 /l SYSTEM /so "A Batch File" /d "This is found in system log."
EventCreate /t WARNING /id 456 /l APPLICATION /so BlaBla /d "This is found in apps log"