Windows process creation with explicit handle ownership, Jobs, and pseudoconsoles.
cargo add windows-spawnuse windows_spawn::Command;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let output = Command::new("cmd.exe")
.args(["/D", "/C", "echo hello"])
.output()?;
assert!(output.status.success());
Ok(())
}Licensed under either of the Apache License, Version 2.0 or the Massachusetts Institute of Technology (MIT) license, at your option. You license each contribution you submit under the same two licenses, without other terms, unless you state otherwise.