公告
财富商城
积分规则
提问
发文
2019-02-25 17:03发布
贪生不怕死
windows batch script:
adb shell echo hello
why does the next line echo hello not execute?
echo hello
The next line in a batch script executes after the previous command adb shell has finished.
adb shell
adb shell starts an interactive shell and it finishes only after you exit the shell.
Assuming you want to execute echo hello in the adb shell, put them on the same line:
In this form, adb shell doesn't start an interactive shell but operates in batch mode, running the command and then exiting.
any method can force next command execute even the pre command not finished ?
Use start to launch a program in the background, e.g.
start
start /b adb shell echo hello
最多设置5个标签!
The next line in a batch script executes after the previous command
adb shell
has finished.adb shell
starts an interactive shell and it finishes only after you exit the shell.Assuming you want to execute
echo hello
in the adb shell, put them on the same line:In this form,
adb shell
doesn't start an interactive shell but operates in batch mode, running the command and then exiting.Use
start
to launch a program in the background, e.g.