Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
windbg-我如何避免“使用”;按Enter键继续";?执行.shell时_Windbg - Fatal编程技术网

windbg-我如何避免“使用”;按Enter键继续";?执行.shell时

windbg-我如何避免“使用”;按Enter键继续";?执行.shell时,windbg,Windbg,windbg-如何避免“按Enter键继续” 0:031>.shell“${$arg2}”ProcessDV“${$arg1}” .shell:进程已退出 按ENTER键继续 我不想使用shell-x,因为我想确保等待进程退出。但是,在进程退出后,我希望在没有用户干预的情况下继续我的脚本。您可以重定向进程的stdin 语法: .shell -ci "windbg command/s separated by ;" windows_command arg1 arg2 ... 粗略地说,它相当于

windbg-如何避免“按Enter键继续”

0:031>.shell“${$arg2}”ProcessDV“${$arg1}”
.shell:进程已退出
按ENTER键继续

我不想使用shell-x,因为我想确保等待进程退出。但是,在进程退出后,我希望在没有用户干预的情况下继续我的脚本。

您可以重定向进程的stdin

语法:

.shell -ci "windbg command/s separated by ;" windows_command arg1 arg2 ...
粗略地说,它相当于:

windbg_commands | windows_command args1 arg2
其中,
|
表示管道


如果windows_命令不接受任何输入,请使用以下语法:

.shell -ci "*" "${$arg2}" ProcessDV "${$arg1}"
请记住,
*
代表注释。因此,它不会创建任何输出

.shell -ci "*" "${$arg2}" ProcessDV "${$arg1}"