Write to Windows event log: Difference between revisions
m
→{{header|Phix}}: syntax coloured, marked p2js incompatible
Alextretyak (talk | contribs) (Added 11l) |
m (→{{header|Phix}}: syntax coloured, marked p2js incompatible) |
||
Line 498:
=={{header|Phix}}==
The first two lines are of course entirely optional, but could help prevent someone/a newbie from wasting their time trying to achieve the impossible.
<lang Phix>system(`eventcreate /T INFORMATION /ID 123 /D "Rosetta Code Write to Windows event log task example"`)</lang>▼
<!--<lang Phix>(notonline)-->
<span style="color: #7060A8;">requires</span><span style="color: #0000FF;">(</span><span style="color: #004600;">WINDOWS</span><span style="color: #0000FF;">)</span> <span style="color: #000080;font-style:italic;">-- (as in this will not work on Linux or p2js, duh)</span>
<span style="color: #008080;">without</span> <span style="color: #008080;">js</span> <span style="color: #000080;font-style:italic;">-- (as above, also prevent pointless attempts to transpile)</span>
▲ <
<!--</lang>-->
{{out}} (when running as administrator)
<pre>
|