Write to Windows event log: Difference between revisions
Content added Content deleted
Simple9371 (talk | contribs) (Added Syntax highlighting in Batch File solution) |
Simple9371 (talk | contribs) |
||
Line 212: | Line 212: | ||
EventCreate /t WARNING /id 456 /l APPLICATION /so BlaBla /d "This is found in apps log" 2>NUL>NUL |
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> |
::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}}== |
=={{header|BBC BASIC}}== |