RosettaCodeData/Task/Write-to-Windows-event-log/Lingo/write-to-windows-event-log.lingo
2018-06-22 20:57:24 +00:00

5 lines
219 B
Text

shell = xtra("Shell").new()
props = [:]
props["operation"] = "runas"
props["parameters"] = "/t INFORMATION /id 123 /l APPLICATION /so Lingo /d "&QUOTE&"Rosetta Code Example"&QUOTE
shell.shell_exec("EventCreate", props)