Function spawn_console_process
pub fn spawn_console_process<W: WindowsApi>(
api: &W,
application: &str,
args: Vec<String>,
) -> Option<PROCESS_INFORMATION>Expand description
Launch the given console application with the given arguments as a new detached process with its own console window.
Input/Output handles are not being inherited. Whichever default terminal application is configured in the windows system settings will be used to host the application (i.e. create the window).
§Arguments
api- Windows API implementationapplication- Application name including file extension (.exe). If the application is not in thePATHenvironment variable, the full path must be specified.args- List of arguments to the application.
§Returns
[PROCESS_INFORMATION] of the spawned process.