Write to Windows event log: Difference between revisions

m
(Added Syntax highlighting in Batch File solution)
Line 212:
EventCreate /t WARNING /id 456 /l APPLICATION /so BlaBla /d "This is found in apps log" 2>NUL>NUL
::That "2>NUL>NUL" trick actually works in any command!</lang>
 
NOTE: This will (...or might) not work if you do not have administrator privileges.
 
=={{header|BBC BASIC}}==
535

edits