We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8db67f5 commit 210ec6eCopy full SHA for 210ec6e
src/lib.rs
@@ -38,7 +38,7 @@ pub fn that(path: &str) -> io::Result<ExitStatus> {
38
39
#[cfg(target_os = "windows")]
40
pub fn that(path: &str) -> io::Result<ExitStatus> {
41
- match Command::new("start").arg(path).spawn() {
+ match Command::new("cmd").arg("/C").arg("start").arg(path).spawn() {
42
Ok(mut child) => child.wait(),
43
Err(err) => Err(err),
44
}
@@ -50,4 +50,4 @@ pub fn that(path: &str) -> io::Result<ExitStatus> {
50
51
52
53
-}
+}
0 commit comments