diff --git a/src/main.rs b/src/main.rs index d573705..2d8ab8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,12 @@ impl AdbMonitorCallback for AutoAdb { }) .collect::>(); println!("Detected device {}", serial); - let process = Command::new(&cmd[0]).args(cmd.iter().skip(1)).spawn(); + let mut command = Command::new(&cmd[0]); + command.args(cmd.iter().skip(1)); + if cfg!(windows) { + command.current_dir("C:\\"); + } + let process = command.spawn(); if let Err(err) = process { eprintln!("Could not execute {:?}: {}", cmd, err); }