Write to Windows event log: Difference between revisions
Content deleted Content added
No edit summary |
Added BBC BASIC |
||
Line 1: | Line 1: | ||
{{task}} |
{{task}} |
||
Write script status to the Windows Event Log |
Write script status to the Windows Event Log |
||
=={{header|BBC BASIC}}== |
|||
{{works with|BBC BASIC for Windows}} |
|||
Writes to the Application Log: |
|||
<lang bbcbasic> INSTALL @lib$+"COMLIB" |
|||
PROC_cominitlcid(1033) |
|||
WshShell% = FN_createobject("WScript.Shell") |
|||
PROC_callmethod(WshShell%, "LogEvent(0, ""Test from BBC BASIC"")") |
|||
PROC_releaseobject(WshShell%) |
|||
PROC_comexit</lang> |
|||
=={{header|C sharp}}== |
=={{header|C sharp}}== |