diff --git a/src/lib.rs b/src/lib.rs index b88b6c5..937789e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,7 @@ pub fn that(path: &str) -> io::Result { #[cfg(target_os = "windows")] pub fn that(path: &str) -> io::Result { - match Command::new("start").arg(path).spawn() { + match Command::new("cmd").arg("/C").arg("start").arg(path).spawn() { Ok(mut child) => child.wait(), Err(err) => Err(err), } @@ -50,4 +50,4 @@ pub fn that(path: &str) -> io::Result { Ok(mut child) => child.wait(), Err(err) => Err(err), } -} \ No newline at end of file +}