System Interfaces
The standard library provides the following interfaces for interacting with the operating system in
the core.sys package:
-
void open(core.io.Url file)Open an
Urlusing the default program that is associated with the file in the operating system. Throws aSystemErroron failure. -
void execute(core.io.Url program, core.Array<core.Str> params)Execute the program
programwith the parameters inparams. Ifprogramis a relative url that consists of a single part, then the function searches for the program in thePATHvariable. -
void execute(core.io.Url program, core.Array<core.Str> params, core.Maybe<core.io.Url> workingDirectory)Execute the program
programwith the parameters inparams. Start the program in the specified working directory if specified. Ifprogramis a relative url that consists of a single part, then the function searches for the program in thePATHvariable.
