Write to Windows event log: Difference between revisions
→{{header|C sharp|C#}}
({{omit from|ZX Spectrum Basic}}) |
|||
Line 2:
Write script status to the Windows Event Log
=={{header|C sharp
In Windows Vista and later or Windows Server 2003, you must have administrative privileges to execute this code.
<lang csharp>using System.Diagnostics;
Line 24:
}
}</lang>
=={{header|Delphi}}==
<lang Delphi>program WriteToEventLog;
|