【发布时间】:2018-05-01 18:01:14
【问题描述】:
我正在尝试按如下方式运行 powershell 脚本:
Start-Process -FilePath "C:\svn\Services\trunk\Services.In4m.Agent.Host\bin\agent.exe" -Argument --help
发生这种情况的任何原因。另外,如何编写脚本使命令提示符窗口不会立即关闭?
【问题讨论】:
-
发生这种情况是因为 agent.exe 已完成且正在关闭。你可以试试 -Wait
-
使用 -Wait 也会关闭。任何其他解决方案
-
Powershell 不接受 -wait 请求
-
@the_coder_in_me 这绝对不是真的。
标签: c# powershell command-line executable start-process