Process:constructor(cmd, [hidden], [redirect])constructor
The Process constructor creates a new Windows process.
Parameters
cmd
A string representing the command to be executed as a new process, that contains the executable and parameters separated by spaces
[hidden]
An optional boolean value indicating if the application is hidden, defaulting to false
[redirect]
An optional boolean value indicating if the process stdin, stdout and stderr are redirected, defaulting to false
Return value
The constructor returns a new Process | nil instance.Example
--! luart-extensions
import sysutils
local ui = require "ui"
-- create a process launching Notepad
local p = sysutils.Process("notepad.exe")
-- start the process and wait for it to terminate
await p:spawn()
ui.info("Notepad application has been closed")