mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-12 02:09:12 +08:00
commit
5d26dbaa90
@ -974,7 +974,7 @@ netsh advfirewall firewall delete rule name=\"{app_name} Service\"
|
||||
|
||||
fn write_cmds(cmds: String, ext: &str) -> ResultType<std::path::PathBuf> {
|
||||
let mut tmp = std::env::temp_dir();
|
||||
tmp.push(format!("{}_{}.{}", APP_NAME, crate::get_time(), ext));
|
||||
tmp.push(format!("{}_{:?}.{}", APP_NAME, cmds.as_ptr(), ext));
|
||||
let mut cmds = cmds;
|
||||
if ext == "cmd" {
|
||||
cmds = format!("{}\ndel /f \"{}\"", cmds, tmp.to_str().unwrap_or(""));
|
||||
|
Loading…
Reference in New Issue
Block a user