盘州市网站建设,做公司网站宣传公司,手机模板网站模板下载,网站推广的效果目录
python调用 bat#xff0c;启动新窗口#xff0c;但是不能自动在进入shell 后执行提前设置的操作。
python启动cmd新窗口#xff0c;但是不能自动在进入shell 后执行提前设置的操作。 python调用 bat#xff0c;启动新窗口#xff0c;但是不能自动在进入shell 后执…目录
python调用 bat启动新窗口但是不能自动在进入shell 后执行提前设置的操作。
python启动cmd新窗口但是不能自动在进入shell 后执行提前设置的操作。 python调用 bat启动新窗口但是不能自动在进入shell 后执行提前设置的操作。 bat_file_path adb_call.batwith open(bat_file_path, w) as file:file.write(fadb -s {ip} shell\n)# file.write(ftail -fn 200 /sdcard/aaa.txt\n)# call_adb(push_str,if_pringTrue)print(push end)subprocess.Popen([cmd, /c, start, cmd, /k, bat_file_path]) python启动cmd新窗口但是不能自动在进入shell 后执行提前设置的操作。
def look_log(ip):log_pathf/sdcard/sandstar/app/{log_name}adb_str fadb connect {ip}# fn-ffn-fn 200res call_adb(adb_str)command fadb -s {ip} shell tail -fn 200 /sdcard/2023-09-16.txt# command fadb -s {ip} shellsubprocess.run([cmd, /c, start, cmd, /k, command])